Class RelationImpl<K,V>
java.lang.Object
org.refcodes.struct.RelationImpl<K,V>
- Type Parameters:
K- The key's typeV- The value's type
- All Implemented Interfaces:
KeyAccessor<K>, ValueAccessor<V>, Relation<K,V>
- Direct Known Subclasses:
AttributeImpl, PropertyImpl, RelationImpl.RelationBuilderImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of theRelation.RelationBuilderinterface.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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiates a new relation impl.RelationImpl(K aKey, V aValue) Constructs aRelation. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ValueAccessor
getValueOr, hasValue
-
Field Details
-
_key
-
_value
-
-
Constructor Details
-
RelationImpl
protected RelationImpl()Instantiates a new relation impl. -
RelationImpl
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceKeyAccessor<K>
-
getValue
- Specified by:
getValuein interfaceValueAccessor<K>
-
toString
-