Record Class MemInfo
java.lang.Object
java.lang.Record
ubic.gemma.core.util.runtime.MemInfo
Information about system memory.
Implemented as a Java record (formerly a Lombok @Value class). getAvailableMemory()
is preserved as a get-prefixed alias for callers that use the JavaBean accessor convention.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionMemInfo(long availableMemory) Creates an instance of aMemInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavailableMemoryrecord component.final booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemInfo
public MemInfo(long availableMemory) Creates an instance of aMemInforecord class.- Parameters:
availableMemory- the value for theavailableMemoryrecord component
-
-
Method Details
-
getAvailableMemory
public long getAvailableMemory() -
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. -
availableMemory
public long availableMemory()Returns the value of theavailableMemoryrecord component.- Returns:
- the value of the
availableMemoryrecord component
-