Class OdOptions.Option<K>

java.lang.Object
org.opentrafficsim.road.od.OdOptions.Option<K>
Type Parameters:
K - option value type
Enclosing class:
OdOptions

public static final class OdOptions.Option<K> extends Object
Utility class to store options.

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

    • Option

      Option(String id, K defaultValue)
      Constructor.
      Parameters:
      id - String; id
      defaultValue - K; default value
  • Method Details

    • getDefaultValue

      public K getDefaultValue()
      Returns the default value.
      Returns:
      default value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object