Record Class VipsOption.Boolean
java.lang.Object
java.lang.Record
app.photofox.vipsffm.VipsOption.Boolean
- All Implemented Interfaces:
VipsOption
- Enclosing interface:
VipsOption
public static record VipsOption.Boolean(String key, AtomicReference<Optional<Boolean>> 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
ConstructorDescriptionBoolean
(String key, AtomicReference<Optional<Boolean>> box) Creates an instance of aBoolean
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.boolean
-
Constructor Details
-
Boolean
Creates an instance of aBoolean
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
-