Record Class CpuInfo
java.lang.Object
java.lang.Record
ubic.gemma.core.util.runtime.CpuInfo
Information about a CPU.
Implemented as a Java record (formerly a Lombok @Value class). getFlags() is
preserved as a get-prefixed alias for callers that use the JavaBean accessor convention.
Equality on the flags array uses reference equality (the record contract), matching the
prior Lombok behaviour for arrays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.String[]flags()Returns the value of theflagsrecord component.String[]getFlags()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CpuInfo
Creates an instance of aCpuInforecord class.- Parameters:
flags- the value for theflagsrecord component
-
-
Method Details
-
getFlags
-
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 withObjects::equals(Object,Object). -
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-