Class TiledOverlappingRangeBasedPropertyMap<T,U>

java.lang.Object
com.here.platform.location.inmemory.graph.TiledOverlappingRangeBasedPropertyMap<T,U>
Type Parameters:
T - Type of the property values inside the OverlappingRangeBasedPropertyTiles
U - Type of the property values returned by this PropertyMap
All Implemented Interfaces:
com.here.platform.location.core.graph.PropertyMap<Vertex,scala.collection.Seq<com.here.platform.location.core.graph.RangeBasedProperty<U>>>

public abstract class TiledOverlappingRangeBasedPropertyMap<T,U> extends Object implements com.here.platform.location.core.graph.PropertyMap<Vertex,scala.collection.Seq<com.here.platform.location.core.graph.RangeBasedProperty<U>>>
Unifies multiple OverlappingRangeBasedPropertyTiles, to enable using them transparently to look up property values by Vertex.

TiledOverlappingRangeBasedPropertyMap supports properties of type U that are represented by a different type T inside the underlying OverlappingRangeBasedPropertyTiles. In this case, property values are converted from one type to the other whenever they are retrieved.

See also OverlappingTiledRangeBasedPropertyMap.transform

param: tileById Used to retrieve the data tiles by their ID, if they exist param: default Default sequence of RangeBasedProperties returned when no property applies to the given Vertex. Unless specified, this is an empty sequence.

  • Constructor Details

    • TiledOverlappingRangeBasedPropertyMap

      public TiledOverlappingRangeBasedPropertyMap(scala.Function1<TileId,scala.Option<OverlappingRangeBasedPropertyTile<T>>> tileById, scala.collection.IndexedSeq<com.here.platform.location.core.graph.RangeBasedProperty<U>> default_)
  • Method Details

    • apply

      public scala.collection.Seq<com.here.platform.location.core.graph.RangeBasedProperty<U>> apply(Vertex key)
      Specified by:
      apply in interface com.here.platform.location.core.graph.PropertyMap<T,U>
    • contains

      public boolean contains(Vertex key)
      Specified by:
      contains in interface com.here.platform.location.core.graph.PropertyMap<T,U>