@Named @SessionScoped public class Game extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
Game() |
| Modifier and Type | Method and Description |
|---|---|
void |
check() |
int |
getBiggest() |
int |
getGuess() |
int |
getNumber() |
int |
getRemainingGuesses() |
int |
getSmallest() |
boolean |
isGuessCorrect() |
boolean |
isGuessHigher() |
boolean |
isGuessLower() |
void |
reset() |
void |
setGuess(int guess) |
void |
validateNumberRange(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent toValidate,
java.lang.Object value) |
public int getNumber()
public int getGuess()
public void setGuess(int guess)
public int getSmallest()
public int getBiggest()
public int getRemainingGuesses()
public void check()
@PostConstruct public void reset()
public void validateNumberRange(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent toValidate,
java.lang.Object value)
public boolean isGuessHigher()
public boolean isGuessLower()
public boolean isGuessCorrect()
Copyright © 2008-2014. All Rights Reserved.