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
Options for copy.
-
Constructor Summary
ConstructorsConstructorDescriptionCopyOptions(boolean includeReferrers) Creates an instance of aCopyOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CopyUtils.CopyOptionsdeep()The copy options with includeReferrers and recursive set to true.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeReferrersrecord component.static CopyUtils.CopyOptionsshallow()The default copy options with includeReferrers to falsefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopyOptions
public CopyOptions(boolean includeReferrers) Creates an instance of aCopyOptionsrecord class.- Parameters:
includeReferrers- the value for theincludeReferrersrecord component
-
-
Method Details
-
shallow
The default copy options with includeReferrers to false- Returns:
- The default copy options
-
deep
The copy options with includeReferrers and recursive set to true.- Returns:
- The copy options with includeReferrers and recursive set to true
-
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. All components in this record class are compared with '=='. -
includeReferrers
public boolean includeReferrers()Returns the value of theincludeReferrersrecord component.- Returns:
- the value of the
includeReferrersrecord component
-