E
- the data type used in the underlying getterSetter objects.public class AttributeList<E>
extends java.lang.Object
TODO: No longer being used in favor of auxiliary arguments. Possibly remove.
Modifier and Type | Class and Description |
---|---|
class |
AttributeList.GetterSetter<E>
Helper object for use with couplings.
|
Constructor and Description |
---|
AttributeList(int size)
Construct the list.
|
Modifier and Type | Method and Description |
---|---|
AttributeList.GetterSetter<E> |
getGetterSetter(int index)
Returns the getterSetter associated with this index.
|
E |
getVal(int index)
Return the value of the getter at the specified index.
|
void |
setVal(int index,
E value)
Set the value of setter at the specified index.
|
public AttributeList(int size)
size
- initial size of listpublic AttributeList.GetterSetter<E> getGetterSetter(int index)
index
- index to getpublic E getVal(int index)
index
- the index of the getter to querypublic void setVal(int index, E value)
index
- the index of the setter to setvalue
- the value to set on that object