Enum Class EdgeLabelFormat.Direction
java.lang.Object
java.lang.Enum<EdgeLabelFormat.Direction>
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat.Direction
- All Implemented Interfaces:
Serializable
,Comparable<EdgeLabelFormat.Direction>
,Constable
- Enclosing class:
EdgeLabelFormat<L extends Label>
Directions of edges.
Describes if a linegraph edge describes an edge from a parent to a child node
or vice versa.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EdgeLabelFormat.Direction
Default direction is child to parent as described in our paper. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A> org.variantsync.functjonal.Pair<A,
A> sort
(A child, A parent) Sort two values according to this direction.static EdgeLabelFormat.Direction
Returns the enum constant of this class with the specified name.static EdgeLabelFormat.Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ChildToParent
-
ParentToChild
-
-
Field Details
-
Default
Default direction is child to parent as described in our paper.
-
-
Constructor Details
-
Direction
private Direction()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
sort
public <A> org.variantsync.functjonal.Pair<A,A> sort(A child, A parent) Sort two values according to this direction. The first argument belongs to a child node, the second argument belongs to a parent node. Both arguments will be ordered such that they comply to this direction.- Type Parameters:
A
- Value type.- Parameters:
child
- A value related to a child node.parent
- A value related to a parent node.- Returns:
- Both values sorted according to this direction.
-