class Identity[T] extends TiledEdgePropertyMap[T, T]
A TiledEdgePropertyMap that does not apply any transformation to the values inside the EdgePropertyTiles before returning them.
- Alphabetic
- By Inheritance
- Identity
- TiledEdgePropertyMap
- PropertyMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Identity(tileById: (TileId) ⇒ Option[EdgePropertyTile[T]])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(edge: Edge): T
Retrieves the property value associated with a particular
key
.Retrieves the property value associated with a particular
key
.- Definition Classes
- TiledEdgePropertyMap → PropertyMap
- Exceptions thrown
java.util.NoSuchElementException
if the key is not found
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(edge: Edge): Boolean
Tests whether this PropertyMap contains a value for a particular key.
Tests whether this PropertyMap contains a value for a particular key.
- returns
true
if this PropertyMap contains a value forkey
,false
otherwise
- Definition Classes
- TiledEdgePropertyMap → PropertyMap
-
def
default(edge: Edge): T
Specifies how to handle missing tiles.
Specifies how to handle missing tiles.
If
tileById
returnsNone
for a specific tile ID, the tile is missing, which means that there is no data available.This method lets you tune how this is interpreted.
The default implementation is to throw NoSuchElementException, meaning that trying to access the data of such a tile is an error.
For some properties the missing tile should be interpreted as if all values in the tile are the same default value, depending on the semantics of the property. For example, a missing tile that describes permitted turns for a given edge, might mean that all turns are permitted for all vehicle types. In that case, override this method to provide that default value.
- Attributes
- protected
- Definition Classes
- TiledEdgePropertyMap
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transform(value: T): T
Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.
Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.
This transformation will be applied every time a value is retrieved and its results will not be cached. For this reason, this method should be as fast as possible.
- Attributes
- protected
- Definition Classes
- Identity → TiledEdgePropertyMap
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()