Record Class DiagnosticsManager.MemoryInfo
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.diagnostics.DiagnosticsManager.MemoryInfo
- Enclosing class:
- DiagnosticsManager
public static record DiagnosticsManager.MemoryInfo(double max, double total, double free, double used)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryInfo(double max, double total, double free) MemoryInfo(double max, double total, double free, double used) Creates an instance of aMemoryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefree()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.doublemax()Returns the value of themaxrecord component.toString()Returns a string representation of this record class.doubletotal()Returns the value of thetotalrecord component.doubleused()Returns the value of theusedrecord component.
-
Constructor Details
-
MemoryInfo
public MemoryInfo(double max, double total, double free) -
MemoryInfo
public MemoryInfo(double max, double total, double free, double used) Creates an instance of aMemoryInforecord class.- Parameters:
max- the value for themaxrecord componenttotal- the value for thetotalrecord componentfree- the value for thefreerecord componentused- the value for theusedrecord 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 '=='. -
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
total
public double total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
free
public double free()Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-
used
public double used()Returns the value of theusedrecord component.- Returns:
- the value of the
usedrecord component
-