public enum Operator extends Enum<Operator>
| Enum Constant and Description |
|---|
EQUAL |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
LESS_THAN |
LESS_THAN_OR_EQUAL |
NOT_EQUAL |
| Modifier and Type | Method and Description |
|---|---|
boolean |
op(int a,
int b) |
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator LESS_THAN
public static final Operator LESS_THAN_OR_EQUAL
public static final Operator GREATER_THAN
public static final Operator GREATER_THAN_OR_EQUAL
public static final Operator EQUAL
public static final Operator NOT_EQUAL
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean op(int a,
int b)
Copyright © 2018 JBoss by Red Hat. All rights reserved.