Package org.sonar.java.se.checks
Enum LocksNotUnlockedCheck.LockConstraint
java.lang.Object
java.lang.Enum<LocksNotUnlockedCheck.LockConstraint>
org.sonar.java.se.checks.LocksNotUnlockedCheck.LockConstraint
- All Implemented Interfaces:
Serializable,Comparable<LocksNotUnlockedCheck.LockConstraint>,Constraint
- Enclosing class:
LocksNotUnlockedCheck
public static enum LocksNotUnlockedCheck.LockConstraint
extends Enum<LocksNotUnlockedCheck.LockConstraint>
implements Constraint
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static LocksNotUnlockedCheck.LockConstraint[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.sonar.java.se.constraint.Constraint
copyOver, hasPreciseValue, inverse, isValidWith
-
Enum Constant Details
-
LOCKED
-
UNLOCKED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
valueAsString
- Specified by:
valueAsStringin interfaceConstraint- Returns:
- String representation of value encoded by constraint for purpose of flow message
-