Record Class VipsOption.Double
java.lang.Object
java.lang.Record
app.photofox.vipsffm.VipsOption.Double
- All Implemented Interfaces:
VipsOption
- Enclosing interface:
VipsOption
public static record VipsOption.Double(String key, AtomicReference<Optional<Double>> box)
extends Record
implements VipsOption
-
Nested Class Summary
Nested classes/interfaces inherited from interface app.photofox.vipsffm.VipsOption
VipsOption.ArrayDouble, VipsOption.ArrayImage, VipsOption.ArrayInt, VipsOption.Blob, VipsOption.Boolean, VipsOption.Double, VipsOption.Enum, VipsOption.Image, VipsOption.Int, VipsOption.Interpolate, VipsOption.Long, VipsOption.Source, VipsOption.String, VipsOption.Target
-
Constructor Summary
ConstructorDescriptionDouble
(String key, AtomicReference<Optional<Double>> box) Creates an instance of aDouble
record class. -
Method Summary
Modifier and TypeMethodDescriptionbox()
Returns the value of thebox
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasValue()
key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.double
-
Constructor Details
-
Double
Creates an instance of aDouble
record class.- Parameters:
key
- the value for thekey
record componentbox
- the value for thebox
record component
-
-
Method Details
-
valueOrThrow
-
hasValue
public boolean hasValue()- Specified by:
hasValue
in interfaceVipsOption
-
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)
. -
key
Returns the value of thekey
record component.- Specified by:
key
in interfaceVipsOption
- Returns:
- the value of the
key
record component
-
box
Returns the value of thebox
record component.- Returns:
- the value of the
box
record component
-