Record Class PathContents.DirectoryContents
java.lang.Object
java.lang.Record
net.minecraft.server.packs.linkfs.PathContents.DirectoryContents
- All Implemented Interfaces:
PathContents
- Enclosing interface:
PathContents
public static record PathContents.DirectoryContents(Map<String, LinkFSPath> children)
extends Record
implements PathContents
-
Nested Class Summary
Nested classes/interfaces inherited from interface PathContents
PathContents.DirectoryContents, PathContents.FileContents -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, LinkFSPath> The field for thechildrenrecord component.Fields inherited from interface PathContents
MISSING, RELATIVE -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryContents(Map<String, LinkFSPath> children) Creates an instance of aDirectoryContentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.final 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.
-
Field Details
-
children
The field for thechildrenrecord component.
-
-
Constructor Details
-
DirectoryContents
Creates an instance of aDirectoryContentsrecord class.- Parameters:
children- the value for thechildrenrecord 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 withObjects::equals(Object,Object). -
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-