Package com.targomo.client.api.enums
Enum Class EdgeStatisticDirection
- All Implemented Interfaces:
Serializable,Comparable<EdgeStatisticDirection>,java.lang.constant.Constable
Specifying which directions of the edge should be considered and if more then one then how they will be aggregated.
0: the direction from the edges start node to its end node
1: the direction from the edges end node to its start node
2: both directions. The statistics value in this case is an already aggregated value for both directions.
Usually either the directions 0 and 1 or direction 2 are available for an edge statistics group.
any: all/any available direction(s). Depending on the service all directions that are available (0, 1, or 2)
will be considered in the computation or will be returned in the request.
sum: values for both direction (0 and 1) will be added. Only available if directions 0 and 1 are available.
mean: the average of the values for both direction (0 and 1) will be used. Only available if directions 0 and 1 are available.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EdgeStatisticDirectionfromString(String type) booleantoString()static EdgeStatisticDirectionReturns the enum constant of this class with the specified name.static EdgeStatisticDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIR0
-
DIR1
-
DIR2
-
ANY
-
SUM
-
MEAN
-
-
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
-
isAggregation
public boolean isAggregation() -
fromString
-
toString
- Overrides:
toStringin classEnum<EdgeStatisticDirection>
-