Class FieldImpl<T>

  • Type Parameters:
    T - The type of the value of the field.
    All Implemented Interfaces:
    java.lang.Cloneable, org.refcodes.mixin.KeyAccessor<T>, org.refcodes.mixin.ValueAccessor<T>, Field<T>
    Direct Known Subclasses:

    public class FieldImpl<T>
    extends java.lang.Object
    implements Field<T>, java.lang.Cloneable
    Implementation of the Field interface being Cloneable.
    • Nested Class Summary

      • 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>
    • Constructor Summary

      Constructor Description
      FieldImpl​(java.lang.String aKey, T aValue)
      Constructs a Field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone​()
      java.lang.String getKey​()
      T getValue​()
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.refcodes.mixin.ValueAccessor

    • Constructor Detail

      • FieldImpl

        public FieldImpl​(java.lang.String aKey,
                         T aValue)
        Constructs a Field.
        aKey - The key of the Field.
        aValue - The value of the Field.
    • Method Detail

      • getKey

        public java.lang.String getKey​()
        Specified by:
        getKey in interface org.refcodes.mixin.KeyAccessor<T>
      • getValue

        public T getValue​()
        Specified by:
        getValue in interface org.refcodes.mixin.ValueAccessor<T>
      • clone

        public java.lang.Object clone​()
                               throws java.lang.CloneNotSupportedException
        clone in class java.lang.Object