Record Class IndexSetFieldType
java.lang.Object
java.lang.Record
org.graylog2.rest.resources.system.indexer.responses.IndexSetFieldType
- All Implemented Interfaces:
InMemoryFilterable
public record IndexSetFieldType(String fieldName, String type, FieldTypeOrigin origin, boolean isReserved)
extends Record
implements InMemoryFilterable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<EntityAttribute>static final Sortingstatic final Stringstatic final EntityDefaults -
Constructor Summary
ConstructorsConstructorDescriptionIndexSetFieldType(String fieldName, String type, FieldTypeOrigin origin, boolean isReserved) Creates an instance of aIndexSetFieldTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.extractFieldValue(String fieldName) Returns the value of thefieldNamerecord component.static Comparator<IndexSetFieldType>getComparator(String sort, Sorting.Direction order) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisReservedrecord component.origin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
DEFAULT_SORT_FIELD
- See Also:
-
DEFAULT_SORT
-
ENTITY_DEFAULTS
-
ATTRIBUTES
-
-
Constructor Details
-
IndexSetFieldType
Creates an instance of aIndexSetFieldTyperecord class.- Parameters:
fieldName- the value for thefieldNamerecord componenttype- the value for thetyperecord componentorigin- the value for theoriginrecord componentisReserved- the value for theisReservedrecord component
-
-
Method Details
-
extractFieldValue
- Specified by:
extractFieldValuein interfaceInMemoryFilterable
-
getComparator
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
isReserved
public boolean isReserved()Returns the value of theisReservedrecord component.- Returns:
- the value of the
isReservedrecord component
-