Record Class VipsOption.Int
java.lang.Object
java.lang.Record
app.photofox.vipsffm.VipsOption.Int
- All Implemented Interfaces:
VipsOption
- Enclosing interface:
VipsOption
public static record VipsOption.Int(String key, AtomicReference<Optional<Integer>> 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
ConstructorsConstructorDescriptionInt(String key, AtomicReference<Optional<Integer>> box) Creates an instance of aIntrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbox()Returns the value of theboxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasValue()key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
Int
Creates an instance of aIntrecord class.- Parameters:
key- the value for thekeyrecord componentbox- the value for theboxrecord component
-
-
Method Details
-
valueOrThrow
-
valueOrNull
-
hasValue
public boolean hasValue()- Specified by:
hasValuein 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 thekeyrecord component.- Specified by:
keyin interfaceVipsOption- Returns:
- the value of the
keyrecord component
-
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-