Record Class Selector.Special.Book
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.Book
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.Book(float openAngle, float page1, float page2)
extends Record
implements Selector.Special.Type
-
Constructor Summary
ConstructorsConstructorDescriptionBook(float openAngle, float page1, float page2) Creates an instance of aBookrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()floatReturns the value of theopenAnglerecord component.floatpage1()Returns the value of thepage1record component.floatpage2()Returns the value of thepage2record component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Book
public Book(float openAngle, float page1, float page2) Creates an instance of aBookrecord class.- Parameters:
openAngle- the value for theopenAnglerecord componentpage1- the value for thepage1record componentpage2- the value for thepage2record component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.Special.Type
-
toJson
- Specified by:
toJsonin interfaceSelector.Special.Type
-
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. -
openAngle
public float openAngle()Returns the value of theopenAnglerecord component.- Returns:
- the value of the
openAnglerecord component
-
page1
public float page1()Returns the value of thepage1record component.- Returns:
- the value of the
page1record component
-
page2
public float page2()Returns the value of thepage2record component.- Returns:
- the value of the
page2record component
-