Class SingleBound.UpperBoundExclusive<T extends Number>

java.lang.Object
org.opentrafficsim.base.parameters.constraint.SingleBound.Bound
org.opentrafficsim.base.parameters.constraint.SingleBound.UpperBoundExclusive<T>
Type Parameters:
T - value type
Enclosing class:
SingleBound<T extends Number>

static class SingleBound.UpperBoundExclusive<T extends Number> extends SingleBound.Bound
Class implementing an upper exclusive bound; value < bound.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • UpperBoundExclusive

      UpperBoundExclusive(T bound)
      Constructor.
      Parameters:
      bound - T; bound
  • Method Details

    • accept

      protected boolean accept(Number value)
      Returns true if the bound accepts the value.
      Specified by:
      accept in class SingleBound.Bound
      Parameters:
      value - Number; the value to check
      Returns:
      true if the bound accepts the value