Record Class BedrockRealmData.Backup
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.features.realms.BedrockRealmData.Backup
- Enclosing class:
BedrockRealmData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautomaticrecord component.longReturns the value of thecompressedSizerecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Backup
public Backup(String id, String name, String date, long size, long compressedSize, boolean automatic) Creates an instance of aBackuprecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdate- the value for thedaterecord componentsize- the value for thesizerecord componentcompressedSize- the value for thecompressedSizerecord componentautomatic- the value for theautomaticrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
compressedSize
public long compressedSize()Returns the value of thecompressedSizerecord component.- Returns:
- the value of the
compressedSizerecord component
-
automatic
public boolean automatic()Returns the value of theautomaticrecord component.- Returns:
- the value of the
automaticrecord component
-