summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-06-29 14:51:54 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-06-29 14:51:54 +0200
commit335600076e6792d639f239dd8babb3d54f81407b (patch)
tree15081723bc77a622c2caed4591c0881ad7adddb1 /core
parente570de663b948fcfc6ceee07529671f541d10203 (diff)
downloadRustAndDust-335600076e6792d639f239dd8babb3d54f81407b.zip
RustAndDust-335600076e6792d639f239dd8babb3d54f81407b.tar.gz
PlayerRecord: add toString()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/util/PlayerRecord.java6
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());