- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
KeyAccessor.KeyBuilder<K,
B extends KeyAccessor.KeyBuilder<K, B>>, KeyAccessor.KeyMutator<K>, KeyAccessor.KeyProperty<K> -
Method Summary
Modifier and TypeMethodDescriptiondefault K
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofKeyAccessor.KeyMutator.setKey(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.KeyAccessor
getKey
Methods inherited from interface org.refcodes.mixin.KeyAccessor.KeyMutator
setKey
-
Method Details
-
letKey
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofKeyAccessor.KeyMutator.setKey(Object)
and returns the very same value (getter).- Parameters:
aKey
- The value to set (viaKeyAccessor.KeyMutator.setKey(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-