Record Class StatusResource.MemoryBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.core.impl.resources.StatusResource.MemoryBean
- Enclosing class:
StatusResource
public static record StatusResource.MemoryBean(long used, long free, long total, long max)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryBean(long used, long free, long total, long max) Creates an instance of aMemoryBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfree()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.longmax()Returns the value of themaxrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.longused()Returns the value of theusedrecord component.
-
Constructor Details
-
MemoryBean
public MemoryBean(long used, long free, long total, long max) Creates an instance of aMemoryBeanrecord class.- Parameters:
used- the value for theusedrecord componentfree- the value for thefreerecord componenttotal- the value for thetotalrecord componentmax- the value for themaxrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
used
public long used()Returns the value of theusedrecord component.- Returns:
- the value of the
usedrecord component
-
free
public long free()Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
max
public long max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-