public class SpeedLimitInfo extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
SpeedLimitInfo() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addSpeedInfo(SpeedLimitType<T> speedLimitType,
T speedInfo)
Adds or overwrites the speed info of the given speed limit type.
|
boolean |
containsType(SpeedLimitType<?> speedLimitType)
Whether speed info is present for the given speed limit type.
|
boolean |
equals(Object obj) |
<T> T |
getSpeedInfo(SpeedLimitType<T> speedLimitType)
Returns the info regarding a specific speed limit type.
|
int |
hashCode() |
void |
removeSpeedInfo(SpeedLimitType<?> speedLimitType)
Removes the speed info of given speed limit type.
|
String |
toString() |
public final <T> void addSpeedInfo(SpeedLimitType<T> speedLimitType, T speedInfo)
T - class of speed infospeedLimitType - speed limit type to add info forspeedInfo - info regarding the speed limit typeNullPointerException - if the speed limit type or speed info is nullpublic final void removeSpeedInfo(SpeedLimitType<?> speedLimitType)
speedLimitType - speed limit type of speed info to removeNullPointerException - if the speed limit type is nullpublic final boolean containsType(SpeedLimitType<?> speedLimitType)
speedLimitType - speed limit typepublic final <T> T getSpeedInfo(SpeedLimitType<T> speedLimitType)
T - class of speed limit type infospeedLimitType - speed limit type to return info forNullPointerException - if the speed limit type is nullIllegalStateException - if the speed limit type is not presentCopyright © 2014–2016 Delft University of Technology. All rights reserved.