Package bm
Record Class Build.SortableTarget
java.lang.Object
java.lang.Record
bm.Build.SortableTarget
- Enclosing class:
Build
public static record Build.SortableTarget(Target target, int depth, String alias, String description)
extends Record
Provided by
Build.topologicallySorted().-
Constructor Summary
ConstructorsConstructorDescriptionSortableTarget(Target target, int depth, String alias, String description) Creates an instance of aSortableTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.intdepth()Returns the value of thedepthrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortableTarget
Creates an instance of aSortableTargetrecord class.- Parameters:
target- the value for thetargetrecord componentdepth- the value for thedepthrecord componentalias- the value for thealiasrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-