From: Svjatoslav Agejenko Date: Wed, 11 Oct 2017 14:51:15 +0000 (+0300) Subject: Added toString. X-Git-Tag: svjatoslavcommons-1.8~53 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=d179c8161ada24635c95d30ad6033cfc6d6e3d8a;p=svjatoslav_commons.git Added toString. --- diff --git a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java index ae51c29..fa07a5b 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java @@ -31,4 +31,13 @@ public class Terminator { PRESERVE, DROP } + + @Override + public String toString() { + return "Terminator{" + + "startSequence='" + startSequence + '\'' + + ", endSequence='" + endSequence + '\'' + + ", termination=" + termination + + '}'; + } } diff --git a/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java b/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java index 92997dd..86d7a1b 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java @@ -18,4 +18,12 @@ public class TokenizerMatch { this.token = token; this.terminator = terminator; } + + @Override + public String toString() { + return "TokenizerMatch{" + + "token='" + token + '\'' + + ", terminator=" + terminator + + '}'; + } }