T - Class of speed info that is linked to the speed limit type.public class SpeedLimitType<T> extends Type<SpeedLimitType<T>> implements Serializable, Identifiable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
SpeedLimitType(String id,
Class<T> infoClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId()
Returns the id.
|
Class<T> |
getInfoClass()
Returns the class of the info related to this speed limit type.
|
int |
hashCode() |
String |
toString() |
public SpeedLimitType(String id, Class<T> infoClass)
id - id of this speed limit type, which must be uniqueinfoClass - class of the info related to this speed limit typeNullPointerException - if id or info class is nullpublic final String getId()
getId in interface Identifiablepublic final Class<T> getInfoClass()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.