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 aMemoryInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
free()
Returns the value of thefree
record component.final int
hashCode()
Returns a hash code value for this object.double
max()
Returns the value of themax
record component.toString()
Returns a string representation of this record class.double
total()
Returns the value of thetotal
record component.double
used()
Returns the value of theused
record 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 aMemoryInfo
record class.- Parameters:
max
- the value for themax
record componenttotal
- the value for thetotal
record componentfree
- the value for thefree
record componentused
- the value for theused
record 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 themax
record component.- Returns:
- the value of the
max
record component
-
total
public double total()Returns the value of thetotal
record component.- Returns:
- the value of the
total
record component
-
free
public double free()Returns the value of thefree
record component.- Returns:
- the value of the
free
record component
-
used
public double used()Returns the value of theused
record component.- Returns:
- the value of the
used
record component
-