Record Class DataSourceResponse.IpGenerator
java.lang.Object
java.lang.Record
org.elasticsearch.datageneration.datasource.DataSourceResponse.IpGenerator
- All Implemented Interfaces:
DataSourceResponse
- Enclosing interface:
DataSourceResponse
public static record DataSourceResponse.IpGenerator(Supplier<InetAddress> generator)
extends Record
implements DataSourceResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.datageneration.datasource.DataSourceResponse
DataSourceResponse.AggregateMetricDoubleGenerator, DataSourceResponse.ArrayWrapper, DataSourceResponse.BooleanGenerator, DataSourceResponse.ByteGenerator, DataSourceResponse.ChildFieldGenerator, DataSourceResponse.DoubleGenerator, DataSourceResponse.DynamicMappingGenerator, DataSourceResponse.FieldDataGenerator, DataSourceResponse.FieldTypeGenerator, DataSourceResponse.FloatGenerator, DataSourceResponse.GeoPointGenerator, DataSourceResponse.GeoShapeGenerator, DataSourceResponse.HalfFloatGenerator, DataSourceResponse.InstantGenerator, DataSourceResponse.IntegerGenerator, DataSourceResponse.IpGenerator, DataSourceResponse.LeafMappingParametersGenerator, DataSourceResponse.LongGenerator, DataSourceResponse.MalformedWrapper, DataSourceResponse.NullWrapper, DataSourceResponse.ObjectArrayGenerator, DataSourceResponse.ObjectMappingParametersGenerator, DataSourceResponse.PointGenerator, DataSourceResponse.RepeatingWrapper, DataSourceResponse.ShapeGenerator, DataSourceResponse.ShortGenerator, DataSourceResponse.StringGenerator, DataSourceResponse.TransformWeightedWrapper, DataSourceResponse.TransformWrapper, DataSourceResponse.UnsignedLongGenerator, DataSourceResponse.VersionStringGenerator -
Constructor Summary
ConstructorsConstructorDescriptionIpGenerator(Supplier<InetAddress> generator) Creates an instance of aIpGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IpGenerator
Creates an instance of aIpGeneratorrecord class.- Parameters:
generator- the value for thegeneratorrecord 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). -
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-