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 Default Methods Modifier and Type Method Description default <Type_> Type_getIndexerKey(int fromInclusive, int toExclusive)<Type_> Type_getProperty(int index)Retrieves index property at a given position.intmaxLength()
-
-
-
Method Detail
-
getProperty
<Type_> Type_ getProperty(int index)
Retrieves index property at a given position.- Type Parameters:
Type_-ComparisonIndexerwill expect this to implementComparable.- Parameters:
index-- Returns:
- never null
-
maxLength
int maxLength()
-
getIndexerKey
default <Type_> Type_ getIndexerKey(int fromInclusive, int toExclusive)- Type Parameters:
Type_- any type understanding that two keys may point to different tuples unless their instances are equal- Parameters:
fromInclusive- position of the first index property to be part of the key, inclusivetoExclusive- position of the last index property to be part of the key, exclusive- Returns:
- never null;
-
-