Package com.tuladb
Record Class Models.CurrencyInstance
java.lang.Object
java.lang.Record
com.tuladb.Models.CurrencyInstance
- Enclosing class:
Models
-
Constructor Summary
ConstructorsConstructorDescriptionCurrencyInstance(int numeric, String alpha, int scale, int active, String name, long createdAtSec) Creates an instance of aCurrencyInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactive()Returns the value of theactiverecord component.alpha()Returns the value of thealpharecord component.longReturns the value of thecreatedAtSecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intnumeric()Returns the value of thenumericrecord component.static Models.CurrencyInstanceintscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CurrencyInstance
public CurrencyInstance(int numeric, String alpha, int scale, int active, String name, long createdAtSec) Creates an instance of aCurrencyInstancerecord class.- Parameters:
numeric- the value for thenumericrecord componentalpha- the value for thealpharecord componentscale- the value for thescalerecord componentactive- the value for theactiverecord componentname- the value for thenamerecord componentcreatedAtSec- the value for thecreatedAtSecrecord component
-
-
Method Details
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
numeric
public int numeric()Returns the value of thenumericrecord component.- Returns:
- the value of the
numericrecord component
-
alpha
Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
scale
public int scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
active
public int active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
createdAtSec
public long createdAtSec()Returns the value of thecreatedAtSecrecord component.- Returns:
- the value of the
createdAtSecrecord component
-