Record Class TurSystemInfoBean.DiskInfo
java.lang.Object
java.lang.Record
com.viglet.turing.api.system.TurSystemInfoBean.DiskInfo
- Enclosing class:
TurSystemInfoBean
public static record TurSystemInfoBean.DiskInfo(long totalSpace, long usableSpace, long usedSpace)
extends Record
- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionDiskInfo(long totalSpace, long usableSpace, long usedSpace) Creates an instance of aDiskInforecord 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.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSpacerecord component.longReturns the value of theusableSpacerecord component.longReturns the value of theusedSpacerecord component.
-
Constructor Details
-
DiskInfo
public DiskInfo(long totalSpace, long usableSpace, long usedSpace) Creates an instance of aDiskInforecord class.- Parameters:
totalSpace- the value for thetotalSpacerecord componentusableSpace- the value for theusableSpacerecord componentusedSpace- the value for theusedSpacerecord 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. -
totalSpace
public long totalSpace()Returns the value of thetotalSpacerecord component.- Returns:
- the value of the
totalSpacerecord component
-
usableSpace
public long usableSpace()Returns the value of theusableSpacerecord component.- Returns:
- the value of the
usableSpacerecord component
-
usedSpace
public long usedSpace()Returns the value of theusedSpacerecord component.- Returns:
- the value of the
usedSpacerecord component
-