Class Field

java.lang.Object
org.apache.maven.search.request.Field
Direct Known Subclasses:
Field.BooleanField, Field.InstantField, Field.NumberField, Field.StringField

public abstract class Field extends Object
Field, that is used as key in record.
  • Method Details

    • getFieldName

      public String getFieldName()
      Returns the field name.
    • getFieldValue

      public abstract Object getFieldValue(Map<Field,Object> record)
      Returns the value of the field from given record instance, or null if field not present in record. See subclasses for proper return types.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object