T - value typepublic class MultiConstraint<T> extends Object implements Constraint<T>
 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.
 
| Constructor and Description | 
|---|
| MultiConstraint(Set<Constraint<T>> constraints)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | accept(T value)Checks whether the value complies with constraints. | 
| static <T> MultiConstraint<T> | create(Constraint<T>... constraints)Creates a  MultiConstraintfrom given constraints. | 
| String | failMessage()Returns a message for value failure, pointing to a parameter using '%s'. | 
| String | toString() | 
public MultiConstraint(Set<Constraint<T>> constraints)
constraints - Set<Constraint<T>>; constraints@SafeVarargs public static final <T> MultiConstraint<T> create(Constraint<T>... constraints)
MultiConstraint from given constraints.T - value typeconstraints - Constraint<T>...; constraintsMultiConstraintpublic boolean accept(T value)
accept in interface Constraint<T>value - T; Value to check.public String failMessage()
failMessage in interface Constraint<T>Copyright © 2014–2019 Delft University of Technology. All rights reserved.