java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.Supply
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecirculatingrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thenonCirculatingrecord component.Returns the value of thenonCirculatingAccountsrecord component.static Supplyfinal StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
Supply
public Supply(Context context, long total, long circulating, long nonCirculating, List<String> nonCirculatingAccounts) Creates an instance of aSupplyrecord class.- Parameters:
context- the value for thecontextrecord componenttotal- the value for thetotalrecord componentcirculating- the value for thecirculatingrecord componentnonCirculating- the value for thenonCirculatingrecord componentnonCirculatingAccounts- the value for thenonCirculatingAccountsrecord component
-
-
Method Details
-
parse
-
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 '=='. -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
circulating
public long circulating()Returns the value of thecirculatingrecord component.- Returns:
- the value of the
circulatingrecord component
-
nonCirculating
public long nonCirculating()Returns the value of thenonCirculatingrecord component.- Returns:
- the value of the
nonCirculatingrecord component
-
nonCirculatingAccounts
Returns the value of thenonCirculatingAccountsrecord component.- Returns:
- the value of the
nonCirculatingAccountsrecord component
-