Class AttributeImpl

java.lang.Object
org.refcodes.struct.RelationImpl<String,​Object>
org.refcodes.struct.AttributeImpl
All Implemented Interfaces:
org.refcodes.mixin.KeyAccessor<String>, org.refcodes.mixin.ValueAccessor<Object>, Attribute, Relation<String,​Object>
Direct Known Subclasses:
AttributeImpl.AttributeBuilderImpl

public class AttributeImpl
extends RelationImpl<String,​Object>
implements Attribute
Class describing a beans's attribute.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  AttributeImpl.AttributeBuilderImpl
    Implementation of the Property.PropertyBuilder interface.

    Nested classes/interfaces inherited from class org.refcodes.struct.RelationImpl

    RelationImpl.RelationBuilderImpl<K,​V>

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

    Attribute.AttributeBuilder

    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
    Modifier Constructor Description
    protected AttributeImpl()
    Instantiates a new attribute impl.
      AttributeImpl​(String aKey, Object aValue)
    Constructs a key-to-value property.
  • Method Summary

    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.ValueAccessor

    getValue, getValueOr
  • Constructor Details

    • AttributeImpl

      protected AttributeImpl()
      Instantiates a new attribute impl.
    • AttributeImpl

      public AttributeImpl​(String aKey, Object aValue)
      Constructs a key-to-value property.
      Parameters:
      aKey - The key for the key-value property.
      aValue - The value for the key-value property.