Package org.elasticsearch.index.mapper
Record Class MapperTestCase.SyntheticSourceExample
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.MapperTestCase.SyntheticSourceExample
- Enclosing class:
- MapperTestCase
public static record MapperTestCase.SyntheticSourceExample(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> inputValue, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> result, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> mapping)
extends Record
-
Constructor Summary
ConstructorDescriptionSyntheticSourceExample
(Object inputValue, Object result, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mapping) SyntheticSourceExample
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> inputValue, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> result, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mapping) Creates an instance of aSyntheticSourceExample
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,
IOException> Returns the value of theinputValue
record component.org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,
IOException> mapping()
Returns the value of themapping
record component.org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,
IOException> result()
Returns the value of theresult
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SyntheticSourceExample
public SyntheticSourceExample(Object inputValue, Object result, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mapping) -
SyntheticSourceExample
public SyntheticSourceExample(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> inputValue, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> result, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mapping) Creates an instance of aSyntheticSourceExample
record class.- Parameters:
inputValue
- the value for theinputValue
record componentresult
- the value for theresult
record componentmapping
- the value for themapping
record 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 withObjects::equals(Object,Object)
. -
inputValue
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> inputValue()Returns the value of theinputValue
record component.- Returns:
- the value of the
inputValue
record component
-
result
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> result()Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-
mapping
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> mapping()Returns the value of themapping
record component.- Returns:
- the value of the
mapping
record component
-