Record Class Value.StringValue
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
java.lang.Record
dev.gecode.iris.Value.StringValue
- Record Components:
value- the string
- All Implemented Interfaces:
Value
- Enclosing interface:
Value
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.ArrayValue, Value.FloatValue, Value.IntValue, Value.StringValueModifier and TypeInterfaceDescriptionstatic final classAn array, or a row of a larger array, whose elements stay in place until they are asked for.static final recordA single float.static final recordA single integer.static final recordA single string. -
Constructor Summary
ConstructorsConstructorDescriptionStringValue(String value) Creates an instance of aStringValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns this single string.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the type of the leaves.value()Returns the value of thevaluerecord component.Methods inherited from interface Value
asDouble, asLong, at, depth, doubles, get, ints, longs, size, stringsModifier and TypeMethodDescriptiondefault doubleasDouble()Returns this single number, as a float if it is an integer.default longasLong()Returns this single integer.default Valueat(int... path) Follows indices into this value.default intdepth()Returns the depth: 0 for a single value, and otherwise the levels of nesting.default double[]doubles()Returns a copy of the numbers of this one-dimensional array, integers as floats.default Valueget(int index) Gets an element of this array.default int[]ints()Narrows the integers of this one-dimensional array.default long[]longs()Returns a copy of the integers of this one-dimensional array.default intsize()Returns the number of elements of this array.strings()Returns the strings of this one-dimensional array, as an unmodifiable list.
-
Constructor Details
-
StringValue
-
-
Method Details
-
type
-
asString
-
toString
-
hashCode
-
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). -
value
-