Package app.babylon.table.grouping
Interface GroupKey
- All Superinterfaces:
Comparable<GroupKey>
- All Known Implementing Classes:
GroupKey.ElementsGroupKey
Represents a composite grouping key made up of one or more ordered key
components.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classConcrete group-key implementation backed by an object array. -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetComponent(int i) Returns one key component.default ObjectgetFirst()Returns the first key component.default ObjectgetLast()Returns the last key component.default ObjectReturns the second key component.static GroupKeyCreates a group key from ordered key components.intsize()Returns the number of key components.
-
Method Details
-
of
Creates a group key from ordered key components.- Parameters:
elements- key components- Returns:
- group key
-
getComponent
Returns one key component.- Parameters:
i- component index- Returns:
- key component
-
size
int size()Returns the number of key components.- Returns:
- component count
-
getFirst
Returns the first key component.- Returns:
- first component
-
getSecond
Returns the second key component.- Returns:
- second component
-
getLast
Returns the last key component.- Returns:
- last component
-
compareTo
- Specified by:
compareToin interfaceComparable<GroupKey>
-