Package io.camunda.search.clients.types
Record Class TypedValue
java.lang.Object
java.lang.Record
io.camunda.search.clients.types.TypedValue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypedValuestatic final TypedValuestatic final TypedValue -
Constructor Summary
ConstructorsConstructorDescriptionTypedValue(TypedValue.ValueType type, Object value) Creates an instance of aTypedValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intintValue()booleanbooleanisDouble()booleanbooleanisLong()booleanisNull()booleanisShort()booleanisString()longstatic TypedValueof(boolean value) static TypedValueof(double value) static TypedValueof(int value) static TypedValueof(long value) static TypedValueof(short value) static TypedValuestatic <T> List<TypedValue> of(List<T> values, Function<T, TypedValue> mapper) shortfinal StringtoString()Returns a string representation of this record class.static TypedValuetoTypedValue(Object value) type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
NULL
-
TRUE
-
FALSE
-
-
Constructor Details
-
TypedValue
Creates an instance of aTypedValuerecord class.- Parameters:
type- the value for thetyperecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
isNull
public boolean isNull() -
isDouble
public boolean isDouble() -
doubleValue
public double doubleValue() -
isShort
public boolean isShort() -
shortValue
public short shortValue() -
isInteger
public boolean isInteger() -
intValue
public int intValue() -
isLong
public boolean isLong() -
longValue
public long longValue() -
isBoolean
public boolean isBoolean() -
booleanValue
public boolean booleanValue() -
isString
public boolean isString() -
stringValue
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
toTypedValue
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-