Record Class CopyOnWriteFileSystem.Moves

java.lang.Object
java.lang.Record
net.minecraft.util.filefix.virtualfilesystem.CopyOnWriteFileSystem.Moves
Enclosing class:
CopyOnWriteFileSystem

public static record CopyOnWriteFileSystem.Moves(List<Path> directories, List<FileMove> copiedFiles, List<FileMove> preexistingFiles) extends Record
  • Field Details

    • directories

      private final List<Path> directories
      The field for the directories record component.
    • copiedFiles

      private final List<FileMove> copiedFiles
      The field for the copiedFiles record component.
    • preexistingFiles

      private final List<FileMove> preexistingFiles
      The field for the preexistingFiles record component.
  • Constructor Details

    • Moves

      public Moves(List<Path> directories, List<FileMove> copiedFiles, List<FileMove> preexistingFiles)
      Creates an instance of a Moves record class.
      Parameters:
      directories - the value for the directories record component
      copiedFiles - the value for the copiedFiles record component
      preexistingFiles - the value for the preexistingFiles record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • directories

      public List<Path> directories()
      Returns the value of the directories record component.
      Returns:
      the value of the directories record component
    • copiedFiles

      public List<FileMove> copiedFiles()
      Returns the value of the copiedFiles record component.
      Returns:
      the value of the copiedFiles record component
    • preexistingFiles

      public List<FileMove> preexistingFiles()
      Returns the value of the preexistingFiles record component.
      Returns:
      the value of the preexistingFiles record component