Interface KeyAccessor<K>

Type Parameters:
K - The type of the key to be used.
All Known Subinterfaces:
KeyAccessor.KeyProperty<K>

public interface KeyAccessor<K>
Provides an accessor for a key property for e.g. key/value-pair.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static interface  KeyAccessor.KeyBuilder<K,​B extends KeyAccessor.KeyBuilder<K,​B>>
    Provides a builder method for a key property returning the builder for applying multiple build operations.
    static interface  KeyAccessor.KeyMutator<K>
    Provides a mutator for a key property for e.g. key/value-pair.
    static interface  KeyAccessor.KeyProperty<K>
    Provides a key property for e.g. key/value-pair.
  • Method Summary

    Modifier and Type Method Description
    K getKey()
    Retrieves the key from the key property.
  • Method Details

    • getKey

      K getKey()
      Retrieves the key from the key property.
      Returns:
      The key stored by the key property.