Record Class DirectedEdge<T>
java.lang.Object
java.lang.Record
jdk.jpackage.internal.pipeline.DirectedEdge<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDirectedEdge
(T tail, T head) Creates an instance of aDirectedEdge
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <U> DirectedEdge
<U> create
(U tail, U head) final boolean
Indicates whether some other object is "equal to" this one.from()
final int
hashCode()
Returns a hash code value for this object.head()
Returns the value of thehead
record component.tail()
Returns the value of thetail
record component.to()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DirectedEdge
-
-
Method Details
-
from
-
to
-
create
-
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)
. -
tail
Returns the value of thetail
record component.- Returns:
- the value of the
tail
record component
-
head
Returns the value of thehead
record component.- Returns:
- the value of the
head
record component
-