|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.utils.Filter
public class Filter
Used by lobby to filter game lists. Filter is set filter rules and these rules are then checked when game list is drawn.
Constructor Summary | |
---|---|
Filter()
|
Method Summary | |
---|---|
boolean |
hideEmpty()
Checks if empty games are hidden. |
boolean |
hideFull()
Checks if full games are hidden. |
boolean |
nameContains(java.lang.String name)
Checks if name contains set name filter String. |
boolean |
players(int players)
Checks if player amount is within the bounds of this filter. |
void |
setHideEmpty(boolean b)
Sets filter rule. |
void |
setHideFull(boolean b)
Sets filter rule. |
void |
setNameContains(java.lang.String s)
Sets name filter rule. |
void |
setPlayers(int min,
int max)
Sets player amount filter rule. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Filter()
Method Detail |
---|
public void setNameContains(java.lang.String s)
s
- String to be used to filter game names.public void setHideFull(boolean b)
b
- public void setHideEmpty(boolean b)
b
- public boolean hideFull()
public boolean hideEmpty()
public boolean nameContains(java.lang.String name)
name
- String to be checked.
public void setPlayers(int min, int max)
min
- Minimum players.max
- Maximum players.public boolean players(int players)
players
- Amount of players.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |