Interface GroupKey

All Superinterfaces:
Comparable<GroupKey>
All Known Implementing Classes:
GroupKey.ElementsGroupKey

public interface GroupKey extends Comparable<GroupKey>
Represents a composite grouping key made up of one or more ordered key components.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Concrete group-key implementation backed by an object array.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    getComponent(int i)
    Returns one key component.
    default Object
    Returns the first key component.
    default Object
    Returns the last key component.
    default Object
    Returns the second key component.
    static GroupKey
    of(Object... elements)
    Creates a group key from ordered key components.
    int
    Returns the number of key components.
  • Method Details

    • of

      static GroupKey of(Object... elements)
      Creates a group key from ordered key components.
      Parameters:
      elements - key components
      Returns:
      group key
    • getComponent

      Object getComponent(int i)
      Returns one key component.
      Parameters:
      i - component index
      Returns:
      key component
    • size

      int size()
      Returns the number of key components.
      Returns:
      component count
    • getFirst

      default Object getFirst()
      Returns the first key component.
      Returns:
      first component
    • getSecond

      default Object getSecond()
      Returns the second key component.
      Returns:
      second component
    • getLast

      default Object getLast()
      Returns the last key component.
      Returns:
      last component
    • compareTo

      default int compareTo(GroupKey o)
      Specified by:
      compareTo in interface Comparable<GroupKey>