public enum ObjectConstraint extends Enum<ObjectConstraint> implements Constraint
Modifier and Type | Method and Description |
---|---|
Constraint |
copyOver(RelationalSymbolicValue.Kind kind)
Return constraint which should be applied to the rhs of the relation,
if this constraint is set on the lhs of the relation.
|
boolean |
hasPreciseValue() |
Constraint |
inverse() |
boolean |
isNull() |
boolean |
isValidWith(Constraint constraint) |
String |
valueAsString() |
static ObjectConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectConstraint NULL
public static final ObjectConstraint NOT_NULL
public static ObjectConstraint[] values()
for (ObjectConstraint c : ObjectConstraint.values()) System.out.println(c);
public static ObjectConstraint 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()
public boolean hasPreciseValue()
hasPreciseValue
in interface Constraint
public String valueAsString()
valueAsString
in interface Constraint
public boolean isValidWith(@Nullable Constraint constraint)
isValidWith
in interface Constraint
@Nullable public Constraint copyOver(RelationalSymbolicValue.Kind kind)
Constraint
copyOver
in interface Constraint
kind
- kind of relation over which constraint is copiedpublic Constraint inverse()
inverse
in interface Constraint
Copyright © 2012–2017 SonarSource. All rights reserved.