Class RelationImpl<K,V>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RelationImpl.RelationBuilderImpl<K,V>
      Implementation of the Relation.RelationBuilder interface.
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

        org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends java.lang.Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends java.lang.Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor

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

      Fields 
      Modifier and Type Field Description
      protected K _key  
      protected V _value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RelationImpl()
      Instantiates a new relation impl.
        RelationImpl​(K aKey, V aValue)
      Constructs a Relation.
    • Field Detail

      • _key

        protected K _key
      • _value

        protected V _value
    • Constructor Detail

      • RelationImpl

        protected RelationImpl()
        Instantiates a new relation impl.
      • RelationImpl

        public RelationImpl​(K aKey,
                            V aValue)
        Constructs a Relation.
        Parameters:
        aKey - The key for the key-value property.
        aValue - The value for the key-value property.
    • Method Detail

      • getKey

        public K getKey()
        Specified by:
        getKey in interface org.refcodes.mixin.KeyAccessor<K>
      • getValue

        public V getValue()
        Specified by:
        getValue in interface org.refcodes.mixin.ValueAccessor<K>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object