Interface KeyAccessor.KeyProperty<K>

Type Parameters:
K - The type of the key property.
All Superinterfaces:
KeyAccessor<K>, KeyAccessor.KeyMutator<K>
Enclosing interface:
KeyAccessor<K>

public static interface KeyAccessor.KeyProperty<K>
extends KeyAccessor<K>, KeyAccessor.KeyMutator<K>
Provides a key property for e.g. key/value-pair.
  • Method Details

    • letKey

      default K letKey​(K aKey)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of KeyAccessor.KeyMutator.setKey(Object) and returns the very same value (getter).
      Parameters:
      aKey - The value to set (via KeyAccessor.KeyMutator.setKey(Object)).
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.