java.lang.Object
java.lang.Record
eu.hansolo.toolbox.Helper.ClassLoadingInfo
- Enclosing class:
- Helper
public static record Helper.ClassLoadingInfo(long totalLoadedClassCount, int loadedClassCount, long unloadedClassCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClassLoadingInfo(long totalLoadedClassCount, int loadedClassCount, long unloadedClassCount) Creates an instance of aClassLoadingInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theloadedClassCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalLoadedClassCountrecord component.longReturns the value of theunloadedClassCountrecord component.
-
Constructor Details
-
ClassLoadingInfo
public ClassLoadingInfo(long totalLoadedClassCount, int loadedClassCount, long unloadedClassCount) Creates an instance of aClassLoadingInforecord class.- Parameters:
totalLoadedClassCount- the value for thetotalLoadedClassCountrecord componentloadedClassCount- the value for theloadedClassCountrecord componentunloadedClassCount- the value for theunloadedClassCountrecord 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 '=='. -
totalLoadedClassCount
public long totalLoadedClassCount()Returns the value of thetotalLoadedClassCountrecord component.- Returns:
- the value of the
totalLoadedClassCountrecord component
-
loadedClassCount
public int loadedClassCount()Returns the value of theloadedClassCountrecord component.- Returns:
- the value of the
loadedClassCountrecord component
-
unloadedClassCount
public long unloadedClassCount()Returns the value of theunloadedClassCountrecord component.- Returns:
- the value of the
unloadedClassCountrecord component
-