Package land.oras

Record Class CopyUtils.CopyOptions

java.lang.Object
java.lang.Record
land.oras.CopyUtils.CopyOptions
Record Components:
includeReferrers - Whether to include referrers in the copy
Enclosing class:
CopyUtils

public static record CopyUtils.CopyOptions(boolean includeReferrers) extends Record
Options for copy.
  • Constructor Details

    • CopyOptions

      public CopyOptions(boolean includeReferrers)
      Creates an instance of a CopyOptions record class.
      Parameters:
      includeReferrers - the value for the includeReferrers record component
  • Method Details

    • shallow

      public static CopyUtils.CopyOptions shallow()
      The default copy options with includeReferrers to false
      Returns:
      The default copy options
    • deep

      public static CopyUtils.CopyOptions deep()
      The copy options with includeReferrers and recursive set to true.
      Returns:
      The copy options with includeReferrers and recursive set to true
    • 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 '=='.
      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.
    • includeReferrers

      public boolean includeReferrers()
      Returns the value of the includeReferrers record component.
      Returns:
      the value of the includeReferrers record component