Record Class SpatialTemporalMapping<S,E,ST>
java.lang.Object
java.lang.Record
rgu.transport.algorithms.search.SpatialTemporalMapping<S,E,ST>
- Type Parameters:
S- the spatial representationE- the edge representationST- the spatial-temporal representation- Record Components:
toSpatial- converts to spatial representation, not nulltoSpatialTemporal- converts to spatial-temporal representation, not null
-
Constructor Summary
ConstructorsConstructorDescriptionSpatialTemporalMapping(Function<ST, S> toSpatial, BiFunction<S, E, ST> toSpatialTemporal) Canonical constructor with null-checks. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <V,E> SpatialTemporalMapping <V, E, V> identity()Identity function for when the temporal information is not needed.Returns the value of thetoSpatialrecord component.BiFunction<S, E, ST> Returns the value of thetoSpatialTemporalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpatialTemporalMapping
-
-
Method Details
-
identity
Identity function for when the temporal information is not needed.- Type Parameters:
V- the vertex representationE- the edge representation- Returns:
- an identity mapping
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
toSpatial
-
toSpatialTemporal
Returns the value of thetoSpatialTemporalrecord component.- Returns:
- the value of the
toSpatialTemporalrecord component
-