Record Class VolumeInformation
java.lang.Object
java.lang.Record
org.cryptomator.frontend.dokany.internal.VolumeInformation
public record VolumeInformation(int maxComponentLength, String name, int serialNumber, String fileSystemName, EnumIntegerSet<FileSystemFeature> fileSystemFeatures)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumIntegerSet<FileSystemFeature>static final Stringstatic final intstatic final intstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionProvides default values for all values.VolumeInformation(int maxComponentLength, String name, int serialNumber, String fileSystemName, EnumIntegerSet<FileSystemFeature> fileSystemFeatures) Creates an instance of aVolumeInformationrecord class.VolumeInformation(String volumeName, int serialNumber, String fileSystemName) Provides default values for maxComponentLength and fileSystemFeatures. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileSystemFeaturesrecord component.Returns the value of thefileSystemNamerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxComponentLengthrecord component.name()Returns the value of thenamerecord component.intReturns the value of theserialNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_MAX_COMPONENT_LENGTH
public static final int DEFAULT_MAX_COMPONENT_LENGTH- See Also:
-
DEFAULT_SERIAL_NUMBER
public static final int DEFAULT_SERIAL_NUMBER- See Also:
-
DEFAULT_VOLUME_NAME
- See Also:
-
DEFAULT_FS_NAME
- See Also:
-
DEFAULT_FS_FEATURES
-
-
Constructor Details
-
VolumeInformation
Provides default values for maxComponentLength and fileSystemFeatures.- Parameters:
volumeName-serialNumber-fileSystemName-
-
VolumeInformation
public VolumeInformation()Provides default values for all values. -
VolumeInformation
public VolumeInformation(int maxComponentLength, String name, int serialNumber, String fileSystemName, EnumIntegerSet<FileSystemFeature> fileSystemFeatures) Creates an instance of aVolumeInformationrecord class.- Parameters:
maxComponentLength- the value for themaxComponentLengthrecord componentname- the value for thenamerecord componentserialNumber- the value for theserialNumberrecord componentfileSystemName- the value for thefileSystemNamerecord componentfileSystemFeatures- the value for thefileSystemFeaturesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
maxComponentLength
public int maxComponentLength()Returns the value of themaxComponentLengthrecord component.- Returns:
- the value of the
maxComponentLengthrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
serialNumber
public int serialNumber()Returns the value of theserialNumberrecord component.- Returns:
- the value of the
serialNumberrecord component
-
fileSystemName
Returns the value of thefileSystemNamerecord component.- Returns:
- the value of the
fileSystemNamerecord component
-
fileSystemFeatures
Returns the value of thefileSystemFeaturesrecord component.- Returns:
- the value of the
fileSystemFeaturesrecord component
-