Record Class FloatValue
java.lang.Object
java.lang.Record
org.microbean.attributes.FloatValue
- Record Components:
value- the value
- All Implemented Interfaces:
Comparable<FloatValue>,Constable,Value<FloatValue>
A
Value whose value is a float.- Author:
- Laird Nelson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcompareTo(FloatValue other) final Optional<DynamicConstantDesc<FloatValue>> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static final FloatValueof(float f) Returns aFloatValuesuitable for the supplied arguments.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
FloatValue
Creates an instance of aFloatValuerecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<FloatValue>
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
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. -
hashCode
-
toString
-
of
Returns aFloatValuesuitable for the supplied arguments.- Parameters:
f- afloat- Returns:
- a non-
nullFloatValue
-
value
-