Record Class Value.IntValue
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.IntValue
- Record Components:
value- the integer
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleasDouble()Returns this single number, as a float if it is an integer.longasLong()Returns this single integer.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.longvalue()Returns the value of thevaluerecord component.Methods inherited from interface Value
asString, at, depth, doubles, get, ints, longs, size, stringsModifier and TypeMethodDescriptiondefault StringasString()Returns this single string.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
-
IntValue
public IntValue(long value) Creates an instance of aIntValuerecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
type
-
asLong
-
asDouble
-
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 with thecomparemethod from their corresponding wrapper classes. -
value
-