public enum BooleanConstraint extends Enum<BooleanConstraint> implements Constraint
Modifier and Type | Method and Description |
---|---|
BooleanConstraint |
inverse() |
boolean |
isFalse() |
boolean |
isNull() |
boolean |
isTrue() |
static BooleanConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanConstraint TRUE
public static final BooleanConstraint FALSE
public static BooleanConstraint[] values()
for (BooleanConstraint c : BooleanConstraint.values()) System.out.println(c);
public static BooleanConstraint 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 isNull()
isNull
in interface Constraint
public boolean isTrue()
public boolean isFalse()
public BooleanConstraint inverse()
Copyright © 2012–2016 SonarSource. All rights reserved.