Record Class FileSystemCapabilities
java.lang.Object
java.lang.Record
net.minecraft.util.filefix.FileSystemCapabilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theatomicMoverecord component.private final booleanThe field for thehardLinksrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemCapabilities(boolean atomicMove, boolean hardLinks) Creates an instance of aFileSystemCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theatomicMoverecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehardLinksrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
atomicMove
private final boolean atomicMoveThe field for theatomicMoverecord component. -
hardLinks
private final boolean hardLinksThe field for thehardLinksrecord component.
-
-
Constructor Details
-
FileSystemCapabilities
public FileSystemCapabilities(boolean atomicMove, boolean hardLinks) Creates an instance of aFileSystemCapabilitiesrecord class.- Parameters:
atomicMove- the value for theatomicMoverecord componenthardLinks- the value for thehardLinksrecord component
-
-
Method Details
-
getMoveOptions
-
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. -
atomicMove
public boolean atomicMove()Returns the value of theatomicMoverecord component.- Returns:
- the value of the
atomicMoverecord component
-
hardLinks
public boolean hardLinks()Returns the value of thehardLinksrecord component.- Returns:
- the value of the
hardLinksrecord component
-