Class 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-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 6 dec. 2017
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Detail

      • Option

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

      • getDefaultValue

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

        public int hashCode()
        Overrides:
        hashCode in class Object