Class RelationImpl.RelationBuilderImpl<K,V>
java.lang.Object
org.refcodes.struct.RelationImpl<K,V>
org.refcodes.struct.RelationImpl.RelationBuilderImpl<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
KeyAccessor<K>, KeyAccessor.KeyBuilder<K, Relation.RelationBuilder<K,V>>, KeyAccessor.KeyMutator<K>, KeyAccessor.KeyProperty<K>, ValueAccessor<V>, ValueAccessor.ValueBuilder<V, Relation.RelationBuilder<K, V>>, ValueAccessor.ValueMutator<V>, ValueAccessor.ValueProperty<V>, Relation<K, V>, Relation.RelationBuilder<K, V>
- Enclosing class:
RelationImpl<K,V>
public static class RelationImpl.RelationBuilderImpl<K,V>
extends RelationImpl<K,V>
implements Relation.RelationBuilder<K,V>
Implementation of the
Relation.RelationBuilder interface.-
Nested Class Summary
Nested classes/interfaces inherited from class RelationImpl
RelationImpl.RelationBuilderImpl<K,V> Nested classes/interfaces inherited from interface KeyAccessor
KeyAccessor.KeyBuilder<K,B>, KeyAccessor.KeyMutator<K>, KeyAccessor.KeyProperty<K> Nested classes/interfaces inherited from interface Relation
Relation.RelationBuilder<K,V> Nested classes/interfaces inherited from interface ValueAccessor
ValueAccessor.ValueBuilder<V,B>, ValueAccessor.ValueMutator<V>, ValueAccessor.ValueProperty<V> -
Field Summary
Fields inherited from class RelationImpl
_key, _value -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new relation builder impl.RelationBuilderImpl(K aKey, V aValue) Instantiates a new relation builder impl. -
Method Summary
Methods inherited from class RelationImpl
getKey, getValue, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface KeyAccessor
getKeyMethods inherited from interface KeyAccessor.KeyProperty
letKeyMethods inherited from interface Relation.RelationBuilder
withKey, withValueMethods inherited from interface ValueAccessor
getValue, getValueOr, hasValueMethods inherited from interface ValueAccessor.ValueProperty
letValue
-
Constructor Details
-
RelationBuilderImpl
public RelationBuilderImpl()Instantiates a new relation builder impl. -
RelationBuilderImpl
-
-
Method Details
-
setKey
Sets the key.- Specified by:
setKeyin interfaceKeyAccessor.KeyMutator<K>- Parameters:
aKey- the new key
-
setValue
Sets the value.- Specified by:
setValuein interfaceValueAccessor.ValueMutator<K>- Parameters:
aValue- the new value
-