Package org.elasticsearch.index.mapper
Record Class BlockLoaderTestCase.Params
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.BlockLoaderTestCase.Params
- Enclosing class:
BlockLoaderTestCase
public static record BlockLoaderTestCase.Params(boolean syntheticSource, MappedFieldType.FieldExtractPreference preference)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParams(boolean syntheticSource, MappedFieldType.FieldExtractPreference preference) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepreferencerecord component.booleanReturns the value of thesyntheticSourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Params
Creates an instance of aParamsrecord class.- Parameters:
syntheticSource- the value for thesyntheticSourcerecord componentpreference- the value for thepreferencerecord component
-
-
Method Details
-
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 '=='. -
syntheticSource
public boolean syntheticSource()Returns the value of thesyntheticSourcerecord component.- Returns:
- the value of the
syntheticSourcerecord component
-
preference
Returns the value of thepreferencerecord component.- Returns:
- the value of the
preferencerecord component
-