T
- value typepublic interface Constraint<T>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T value)
Checks whether the value complies with constraints.
|
String |
failMessage()
Returns a message for value failure, pointing to a parameter using '%s'.
|
boolean accept(T value)
value
- Value to check.String failMessage()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.