Interface IndexProperties
-
public interface IndexPropertiesIndex properties are cached in tuples and each tuple carries its unique instance.Index properties are shallow immutable and implement
Object.equals(Object)andObject.hashCode().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Type_> Type_toKey(int index)Retrieves index property at a given position.<Type_> Type_toKey(int from, int to)Retrieves an object to serve as a key in an index.
-
-
-
Method Detail
-
toKey
<Type_> Type_ toKey(int index)
Retrieves index property at a given position.- Type Parameters:
Type_-ComparisonIndexerwill expect this to implementComparable.- Parameters:
index-- Returns:
- never null
-
toKey
<Type_> Type_ toKey(int from, int to)Retrieves an object to serve as a key in an index. Instances retrieved using the same arguments must beequal.- Type Parameters:
Type_- expected type of the key- Parameters:
from- index of the first property to use, inclusiveto- index of the last property to use, exclusive- Returns:
- never null
-
-