API Reference 0.3.24dart_web_toolkit_placePlaceTokenizer<P>

PlaceTokenizer<P extends Place> abstract class

Implemented by objects responsible for text serialization and deserialization of Place objects.

@param <P> a subtype of {@link Place}

abstract class PlaceTokenizer<P extends Place> {

 /**
  * Returns the {@link Place} associated with the given token.
  *
  * @param token a String token
  * @return a {@link Place} of type P
  */
 P getPlace(String token);

 /**
  * Returns the token associated with the given {@link Place}.
  *
  * @param place a {@link Place} of type P
  * @return a String token
  */
 String getToken(P place);
}

Methods

abstract P getPlace(String token) #

Returns the {@link Place} associated with the given token.

@param token a String token @return a {@link Place} of type P

abstract String getToken(P place) #

Returns the token associated with the given {@link Place}.

@param place a {@link Place} of type P @return a String token