Class Field<T,​V,​C extends Condition<V>>

  • Type Parameters:
    T - The type of object that this Field is valid for.
    V - The type of value contained by this field in the target object.
    C - The type of condition used to filter this field.
    All Implemented Interfaces:
    java.io.Serializable

    public abstract class Field<T,​V,​C extends Condition<V>>
    extends java.lang.Object
    implements java.io.Serializable
    A field defines the particular source of data that a condition would apply to.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Field​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      The name of the field, an identifier that can be used to retrieve conditions for specific pieces of data.
      abstract V getValueFor​(T target)
      Returns the value of this field from the provided target.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Field

        public Field​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        The name of the field, an identifier that can be used to retrieve conditions for specific pieces of data.
      • getValueFor

        @Nullable
        public abstract V getValueFor​(T target)
        Returns the value of this field from the provided target.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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