Record Class Dialect.Stats
java.lang.Object
java.lang.Record
xyz.srnyx.annoyingapi.storage.dialects.Dialect.Stats
- Enclosing class:
Dialect
-
Constructor Summary
ConstructorsConstructorDescriptionStats(long cacheTargets, long cacheValues) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecacheTargetsrecord component.longReturns the value of thecacheValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(long cacheTargets, long cacheValues) Creates an instance of aStatsrecord class.- Parameters:
cacheTargets- the value for thecacheTargetsrecord componentcacheValues- the value for thecacheValuesrecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
cacheTargets
public long cacheTargets()Returns the value of thecacheTargetsrecord component.- Returns:
- the value of the
cacheTargetsrecord component
-
cacheValues
public long cacheValues()Returns the value of thecacheValuesrecord component.- Returns:
- the value of the
cacheValuesrecord component
-