Class RelationImpl<K,V>

java.lang.Object
org.refcodes.struct.RelationImpl<K,V>
Type Parameters:
K - The key's type
V - The value's type
All Implemented Interfaces:
KeyAccessor<K>, ValueAccessor<V>, Relation<K,V>
Direct Known Subclasses:
AttributeImpl, PropertyImpl, RelationImpl.RelationBuilderImpl

public class RelationImpl<K,V> extends Object implements Relation<K,V>
Implementation of the Relation interface.
  • Field Details

    • _key

      protected K _key
    • _value

      protected V _value
  • Constructor Details

    • 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 Details