T
- Class of type.public abstract class Type<T extends Type<T>> extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
boolean |
isType(T type)
Returns whether this type is the same type as the given type.
|
public final boolean isType(T type)
GTUType
, ParameterType
, etc.) whether an instance is a specific instance of the type. For example:
speedLimitType.isType(SpeedLimitType.CURVATURE).type
- T; type instance to compare toCopyright © 2014–2019 Delft University of Technology. All rights reserved.