public enum BooleanConstraint extends Enum<BooleanConstraint> implements Constraint
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPreciseValue() |
BooleanConstraint |
inverse() |
boolean |
isFalse() |
boolean |
isTrue() |
boolean |
isValidWith(Constraint constraint) |
String |
valueAsString() |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcopyOverpublic 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 isTrue()
public boolean isFalse()
public boolean hasPreciseValue()
hasPreciseValue in interface Constraintpublic String valueAsString()
valueAsString in interface Constraintpublic boolean isValidWith(@Nullable Constraint constraint)
isValidWith in interface Constraintpublic BooleanConstraint inverse()
inverse in interface ConstraintCopyright © 2012–2017 SonarSource. All rights reserved.