Record Class BedrockRealmData.Saves
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.features.realms.BedrockRealmData.Saves
- Enclosing class:
BedrockRealmData
public static record BedrockRealmData.Saves(List<BedrockRealmData.Backup> backups, long used, long total)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSaves(List<BedrockRealmData.Backup> backups, long used, long total) Creates an instance of aSavesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbackups()Returns the value of thebackupsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfits(long size) booleanfinal inthashCode()Returns a hash code value for this object.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
-
Saves
Creates an instance of aSavesrecord class.- Parameters:
backups- the value for thebackupsrecord componentused- the value for theusedrecord componenttotal- the value for thetotalrecord component
-
-
Method Details
-
fits
public boolean fits(long size) -
fits
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
backups
Returns the value of thebackupsrecord component.- Returns:
- the value of the
backupsrecord component
-
used
public long used()Returns the value of theusedrecord component.- Returns:
- the value of the
usedrecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-