Enum YangBinaryOperator
- java.lang.Object
-
- java.lang.Enum<YangBinaryOperator>
-
- org.opendaylight.yangtools.yang.xpath.api.YangBinaryOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<YangBinaryOperator>
@Beta public enum YangBinaryOperator extends Enum<YangBinaryOperator>
YANG XPath binary operator.- Author:
- Robert Varga
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIV
Arithmetic division.EQUALS
Operands are equal.GT
Left-hand operand is greater than right-hand operand.GTE
Left-hand operand is greater than or equal to right-hand operand.LT
Left-hand operand is less than right-hand operand.LTE
Left-hand operand is less than or equal to right-hand operand.MINUS
Arithmetic subtraction.MOD
Arithmetic modulus after truncating division.MUL
Arithmetic multiplication.NOT_EQUALS
Operands do not equal.PLUS
Arithmetic addition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description YangBinaryExpr
exprWith(YangExpr leftExpr, YangExpr rightExpr)
String
toString()
static YangBinaryOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static YangBinaryOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final YangBinaryOperator EQUALS
Operands are equal.- See Also:
- EqualityExpr
-
NOT_EQUALS
public static final YangBinaryOperator NOT_EQUALS
Operands do not equal.- See Also:
- EqualityExpr
-
GT
public static final YangBinaryOperator GT
Left-hand operand is greater than right-hand operand.- See Also:
- RelationalExpr
-
GTE
public static final YangBinaryOperator GTE
Left-hand operand is greater than or equal to right-hand operand.- See Also:
- RelationalExpr
-
LT
public static final YangBinaryOperator LT
Left-hand operand is less than right-hand operand.- See Also:
- RelationalExpr
-
LTE
public static final YangBinaryOperator LTE
Left-hand operand is less than or equal to right-hand operand.- See Also:
- RelationalExpr
-
PLUS
public static final YangBinaryOperator PLUS
Arithmetic addition.- See Also:
- AdditiveExpr
-
MINUS
public static final YangBinaryOperator MINUS
Arithmetic subtraction.- See Also:
- AdditiveExpr
-
MUL
public static final YangBinaryOperator MUL
Arithmetic multiplication.- See Also:
- MultiplicativeExpr
-
DIV
public static final YangBinaryOperator DIV
Arithmetic division.- See Also:
- MultiplicativeExpr
-
MOD
public static final YangBinaryOperator MOD
Arithmetic modulus after truncating division.- See Also:
- MultiplicativeExpr
-
-
Method Detail
-
values
public static YangBinaryOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (YangBinaryOperator c : YangBinaryOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YangBinaryOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<YangBinaryOperator>
-
exprWith
public YangBinaryExpr exprWith(YangExpr leftExpr, YangExpr rightExpr)
-
-