public enum NumericConstraint extends Enum<NumericConstraint> implements Constraint<Number>
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Enum Constant and Description | 
|---|
| ATLEASTONEChecks for ≥1. | 
| NEGATIVEChecks for <0. | 
| NEGATIVEZEROChecks for ≤0. | 
| NONZEROChecks for ≠0. | 
| POSITIVEChecks for >0. | 
| POSITIVEZEROChecks for ≥0. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | failMessage()Returns a message for value failure, pointing to a parameter using '%s'. | 
| static NumericConstraint | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static NumericConstraint[] | 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, valueOfacceptpublic static final NumericConstraint POSITIVE
public static final NumericConstraint NEGATIVE
public static final NumericConstraint POSITIVEZERO
public static final NumericConstraint NEGATIVEZERO
public static final NumericConstraint NONZERO
public static final NumericConstraint ATLEASTONE
public static NumericConstraint[] values()
for (NumericConstraint c : NumericConstraint.values()) System.out.println(c);
public static NumericConstraint 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 String failMessage()
failMessage in interface Constraint<Number>Copyright © 2014–2019 Delft University of Technology. All rights reserved.