diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-29 14:51:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-29 14:51:54 +0200 |
commit | 335600076e6792d639f239dd8babb3d54f81407b (patch) | |
tree | 15081723bc77a622c2caed4591c0881ad7adddb1 /core/src | |
parent | e570de663b948fcfc6ceee07529671f541d10203 (diff) | |
download | RustAndDust-335600076e6792d639f239dd8babb3d54f81407b.zip RustAndDust-335600076e6792d639f239dd8babb3d54f81407b.tar.gz |
PlayerRecord: add toString()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/util/PlayerRecord.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/PlayerRecord.java b/core/src/ch/asynk/rustanddust/util/PlayerRecord.java index efd12de..3d51d43 100644 --- a/core/src/ch/asynk/rustanddust/util/PlayerRecord.java +++ b/core/src/ch/asynk/rustanddust/util/PlayerRecord.java @@ -78,6 +78,12 @@ public class PlayerRecord implements List.ListElement, Disposable, Pool.Poolable return s; } + @Override + public String toString() + { + return String.format("%s - %s", name , email); + } + public boolean hasEmail() { return (this.email != null && !this.email.isEmpty()); |