public class Label extends Object
| Constructor and Description |
|---|
Label() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name.
|
double |
getScore()
Gets the score.
|
void |
setName(String name)
Sets the name.
|
void |
setScore(double score)
Sets the score.
|
String |
toString() |
Label |
withName(String name)
With label name.
|
Label |
withScore(double score)
With score.
|
public String getName()
public void setName(String name)
name - the new namepublic double getScore()
public void setScore(double score)
score - the new scorepublic Label withName(String name)
name - the namepublic Label withScore(double score)
score - the scoreCopyright © 2015. All rights reserved.