T - Class of the value.public abstract class AbstractParameterType<T extends org.djunits.value.vdouble.scalar.DoubleScalar.Rel<?>> extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
valueClass
Class of the value.
|
| Constructor and Description |
|---|
AbstractParameterType(String id,
String description,
Class<T> valueClass)
Constructor without default value.
|
AbstractParameterType(String id,
String description,
Class<T> valueClass,
T defaultValue)
Constructor with default value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getDefaultValue()
Returns the default value.
|
String |
getDescription()
Returns the parameter description.
|
String |
getId()
Returns the parameter id.
|
int |
hashCode() |
String |
toString() |
public AbstractParameterType(String id, String description, Class<T> valueClass, T defaultValue)
id - Short name of parameter.description - Parameter description or full name.valueClass - Class of the value.defaultValue - Default value.public final String getId()
public final String getDescription()
public final T getDefaultValue() throws ParameterException
ParameterException - If no default value was set.Copyright © 2014–2016 Delft University of Technology. All rights reserved.