us.ihmc.robotSide
Class SideDependentList<V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.EnumMap<RobotSide,V>
us.ihmc.robotSide.SideDependentList<V>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<V>, java.util.Map<RobotSide,V>
public class SideDependentList<V>
- extends java.util.EnumMap<RobotSide,V>
- implements java.lang.Iterable<V>
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class java.util.EnumMap |
clear, clone, containsKey, containsValue, entrySet, equals, get, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
hashCode, isEmpty |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SideDependentList
public SideDependentList()
SideDependentList
public SideDependentList(V leftObject,
V rightObject)
SideDependentList
public SideDependentList(SideDependentList<V> other)
- Copy constructor. Just copies the references to the objects; not a deep copy.
- Parameters:
other
- the SideDependentList to be copied
get
public V get(RobotSide side)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractMap<RobotSide,V>
set
public V set(RobotSide robotSide,
V element)
set
public void set(SideDependentList<V> sideDependentList)
createListOfEnumMaps
public static <K extends java.lang.Enum<K>,V> SideDependentList<java.util.EnumMap<K,V>> createListOfEnumMaps(java.lang.Class<K> keyType)
createListOfHashMaps
public static <K,V> SideDependentList<java.util.Map<K,V>> createListOfHashMaps()
iterator
public java.util.Iterator<V> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<V>