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 type
V - the value type
All Implemented Interfaces:
org.refcodes.mixin.KeyAccessor<K>, org.refcodes.mixin.KeyAccessor.KeyBuilder<K,Relation.RelationBuilder<K,V>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K>, org.refcodes.mixin.KeyAccessor.KeyProperty<K>, org.refcodes.mixin.ValueAccessor<V>, org.refcodes.mixin.ValueAccessor.ValueBuilder<V,Relation.RelationBuilder<K,V>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V>, org.refcodes.mixin.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 org.refcodes.struct.RelationImpl

    RelationImpl.RelationBuilderImpl<K,V>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

    org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.struct.Relation

    Relation.RelationBuilder<K,V>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor

    org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
  • Field Summary

    Fields inherited from class org.refcodes.struct.RelationImpl

    _key, _value
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new relation builder impl.
    RelationBuilderImpl(K aKey, V aValue)
    Instantiates a new relation builder impl.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setKey(K aKey)
    Sets the key.
    void
    setValue(V aValue)
    Sets the value.

    Methods inherited from class org.refcodes.struct.RelationImpl

    getKey, getValue, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.KeyAccessor

    getKey

    Methods inherited from interface org.refcodes.mixin.KeyAccessor.KeyProperty

    letKey

    Methods inherited from interface org.refcodes.struct.Relation.RelationBuilder

    withKey, withValue

    Methods inherited from interface org.refcodes.mixin.ValueAccessor

    getValue, getValueOr

    Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty

    letValue
  • Constructor Details

    • RelationBuilderImpl

      public RelationBuilderImpl()
      Instantiates a new relation builder impl.
    • RelationBuilderImpl

      public RelationBuilderImpl(K aKey, V aValue)
      Instantiates a new relation builder impl.
      Parameters:
      aKey - the key
      aValue - the value
  • Method Details

    • setKey

      public void setKey(K aKey)
      Sets the key.
      Specified by:
      setKey in interface org.refcodes.mixin.KeyAccessor.KeyMutator<K>
      Parameters:
      aKey - the new key
    • setValue

      public void setValue(V aValue)
      Sets the value.
      Specified by:
      setValue in interface org.refcodes.mixin.ValueAccessor.ValueMutator<K>
      Parameters:
      aValue - the new value