Interface IndexProperties
public interface IndexProperties
Index properties are cached in tuples and each tuple carries its unique instance.
Index properties are shallow immutable and implement Object.equals(Object) and Object.hashCode().
-
Method Summary
-
Method Details
-
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
-