|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbass.dto.DTO_Band
bass.dto.DTO_BandWithPoints
public class DTO_BandWithPoints
DTO_Band extended to point system and referrer list
| Field Summary | |
|---|---|
private java.util.LinkedList<java.lang.String> |
pointHistory
|
private int |
points
|
private java.util.LinkedList<java.lang.Integer> |
referrers
|
| Constructor Summary | |
|---|---|
DTO_BandWithPoints(java.lang.String name,
int id,
int initialPoints)
creates a new DTO |
|
| Method Summary | |
|---|---|
void |
addPoints(int points)
adds the specified points to the bands points |
void |
addToPointHistory(java.lang.String text)
adds the specified string to the point history |
void |
addToReferrers(int bandid)
adds the specified id to the bands referrers |
int |
compareTo(DTO_BandWithPoints other)
compares this band to another based on their points |
java.util.LinkedList<java.lang.String> |
getPointHistory()
|
java.lang.String |
getPointHistoryString()
|
int |
getPoints()
|
java.util.LinkedList<java.lang.Integer> |
getReferrers()
returns the list of referrers (IDs) |
boolean |
isReferrer(int bandid)
checks if the specified band id is a referrer |
void |
setPointHistory(java.lang.String pointHistoryString)
generates the point history list from the given string representation |
void |
setPoints(int points)
sets the bands points to the specified value, note that old value is overwritten |
| Methods inherited from class bass.dto.DTO_Band |
|---|
commaRemover, getElementSeperator, getFans, getGenre1, getGenre2, getGenre3, getId, getLabelType, getLastLogin, getLastUpdate, getLocation, getMemberSince, getName, getPlays, getViews, isUsable, setFans, setFans, setGenre1, setGenre2, setGenre3, setId, setLabelType, setLastLogin, setLastLogin, setLastUpdate, setLastUpdate, setLocation, setMemberSince, setMemberSince, setName, setPlays, setPlays, setViews, setViews, stringToDate, toHTML, toServerString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int points
private java.util.LinkedList<java.lang.Integer> referrers
private java.util.LinkedList<java.lang.String> pointHistory
| Constructor Detail |
|---|
public DTO_BandWithPoints(java.lang.String name,
int id,
int initialPoints)
name - the bands nameid - the bands idinitialPoints - the initial points for the band| Method Detail |
|---|
public int getPoints()
public void setPoints(int points)
points - the points to setpublic void addPoints(int points)
points - the points to addpublic int compareTo(DTO_BandWithPoints other)
compareTo in interface java.lang.Comparable<DTO_BandWithPoints>Comparable.compareTo(java.lang.Object)public java.util.LinkedList<java.lang.Integer> getReferrers()
public void addToReferrers(int bandid)
bandid - the id to addpublic boolean isReferrer(int bandid)
bandid - the band id to look for
public java.util.LinkedList<java.lang.String> getPointHistory()
public java.lang.String getPointHistoryString()
public void setPointHistory(java.lang.String pointHistoryString)
pointHistoryString - a point history string generated by the method getPointHistoryString()public void addToPointHistory(java.lang.String text)
text - the string to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||