|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSALT.assessment.ItemInfo
public class ItemInfo
Provides getters and setters for an ItemInfo and a method to compare ItemInfo objects.
Comparable
Constructor Summary | |
---|---|
ItemInfo(int id)
Constructs an ItemInfo with the specified ID and rating. |
|
ItemInfo(int id,
int value)
Constructs an ItemInfo with the specified ID and rating. |
Method Summary | |
---|---|
void |
addButtonToButtonList(int value)
|
void |
addTimeStampListElement(int index,
float timeStamp)
|
void |
addTimeStampToTimeStampList(float timeStamp)
|
void |
addValueListElement(int index,
int value)
|
void |
addValueToValueList(int value)
|
int |
compareTo(java.lang.Object otherObject)
Compares item IDs. |
java.util.List<java.lang.Integer> |
getButtonList()
|
int |
getId()
Returns the ID of the item. |
java.util.List<java.lang.Float> |
getTimeStampList()
|
int |
getValue()
Returns the rating for the item. |
java.util.List<java.lang.Integer> |
getValueList()
|
void |
setButtonList(java.util.List<java.lang.Integer> buttonList)
|
void |
setId(int id)
Sets the ID of the item. |
void |
setTimeStampList(java.util.List<java.lang.Float> timeStampList)
|
void |
setTimeStampListElement(int index,
float timeStamp)
|
void |
setValue(int value)
Sets the rating for the item. |
void |
setValueList(java.util.List<java.lang.Integer> valueList)
|
void |
setValueListElement(int index,
int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItemInfo(int id, int value)
id
- value
- public ItemInfo(int id)
id
- value
- Method Detail |
---|
public int getId()
public void setId(int id)
id
- public int getValue()
public void setValue(int value)
value
- public int compareTo(java.lang.Object otherObject)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public java.util.List<java.lang.Integer> getValueList()
public void setValueList(java.util.List<java.lang.Integer> valueList)
public void addValueToValueList(int value)
public java.util.List<java.lang.Integer> getButtonList()
public void setButtonList(java.util.List<java.lang.Integer> buttonList)
public void addButtonToButtonList(int value)
public void setValueListElement(int index, int value)
public void addValueListElement(int index, int value)
public java.util.List<java.lang.Float> getTimeStampList()
public void setTimeStampList(java.util.List<java.lang.Float> timeStampList)
public void addTimeStampToTimeStampList(float timeStamp)
public void setTimeStampListElement(int index, float timeStamp)
public void addTimeStampListElement(int index, float timeStamp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |