Package org.apache.maven.search.request
Class Field
java.lang.Object
org.apache.maven.search.request.Field
- Direct Known Subclasses:
Field.BooleanField
,Field.NumberField
,Field.StringField
Field, that is used as key in record.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the field name.abstract Object
getFieldValue
(Map<Field, Object> record) Returns the value of the field from given record instance, ornull
if field not present in record.int
hashCode()
boolean
Returnstrue
if field may be used forFieldQuery
(is searchable).toString()
-
Method Details
-
getFieldName
Returns the field name. -
isSearchable
public boolean isSearchable()Returnstrue
if field may be used forFieldQuery
(is searchable). -
getFieldValue
Returns the value of the field from given record instance, ornull
if field not present in record. See subclasses for proper return types. -
equals
-
hashCode
public int hashCode() -
toString
-