Package org.elasticsearch.index.mapper
Record Class BlockLoaderTestCase.TestContext
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.BlockLoaderTestCase.TestContext
- Enclosing class:
BlockLoaderTestCase
public static record BlockLoaderTestCase.TestContext(boolean forceFallbackSyntheticSource, boolean isMultifield)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTestContext(boolean forceFallbackSyntheticSource, boolean isMultifield) Creates an instance of aTestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceFallbackSyntheticSourcerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisMultifieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestContext
public TestContext(boolean forceFallbackSyntheticSource, boolean isMultifield) Creates an instance of aTestContextrecord class.- Parameters:
forceFallbackSyntheticSource- the value for theforceFallbackSyntheticSourcerecord componentisMultifield- the value for theisMultifieldrecord 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. All components in this record class are compared with '=='. -
forceFallbackSyntheticSource
public boolean forceFallbackSyntheticSource()Returns the value of theforceFallbackSyntheticSourcerecord component.- Returns:
- the value of the
forceFallbackSyntheticSourcerecord component
-
isMultifield
public boolean isMultifield()Returns the value of theisMultifieldrecord component.- Returns:
- the value of the
isMultifieldrecord component
-