Class SingleBound.UpperBoundInclusive<T extends Number>
- java.lang.Object
-
- org.opentrafficsim.base.parameters.constraint.SingleBound.Bound
-
- org.opentrafficsim.base.parameters.constraint.SingleBound.UpperBoundInclusive<T>
-
- Type Parameters:
T
- value type
- Enclosing class:
- SingleBound<T extends Number>
static class SingleBound.UpperBoundInclusive<T extends Number> extends SingleBound.Bound
Class implementing an upper inclusive bound;value <= bound
.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 8 sep. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.base.parameters.constraint.SingleBound.Bound
bound, classHashcode
-
-
Constructor Summary
Constructors Constructor Description UpperBoundInclusive(T bound)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accept(Number value)
Returns true if the bound accepts the value.-
Methods inherited from class org.opentrafficsim.base.parameters.constraint.SingleBound.Bound
toString
-
-
-
-
Constructor Detail
-
UpperBoundInclusive
UpperBoundInclusive(T bound)
Constructor.- Parameters:
bound
- T; bound
-
-
Method Detail
-
accept
protected boolean accept(Number value)
Returns true if the bound accepts the value.- Specified by:
accept
in classSingleBound.Bound
- Parameters:
value
- Number; the value to check- Returns:
- true if the bound accepts the value
-
-