Package com.tuladb
Record Class Models.SourceInstance
java.lang.Object
java.lang.Record
com.tuladb.Models.SourceInstance
- Enclosing class:
Models
-
Constructor Summary
ConstructorsConstructorDescriptionSourceInstance(int numeric, String alpha, int active, long createdAtSec) Creates an instance of aSourceInstancerecord 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.intnumeric()Returns the value of thenumericrecord component.static Models.SourceInstancefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceInstance
Creates an instance of aSourceInstancerecord class.- Parameters:
numeric- the value for thenumericrecord componentalpha- the value for thealpharecord componentactive- the value for theactiverecord componentcreatedAtSec- the value for thecreatedAtSecrecord component
-
-
Method Details
-
ofAlpha
-
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
-
active
public int active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
createdAtSec
public long createdAtSec()Returns the value of thecreatedAtSecrecord component.- Returns:
- the value of the
createdAtSecrecord component
-