From 335600076e6792d639f239dd8babb3d54f81407b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Jun 2016 14:51:54 +0200 Subject: PlayerRecord: add toString() --- core/src/ch/asynk/rustanddust/util/PlayerRecord.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()); -- cgit v1.1-2-g2b99