Added toString.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:51:15 +0000 (17:51 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:51:15 +0000 (17:51 +0300)
src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java
src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java

index ae51c29..fa07a5b 100755 (executable)
@@ -31,4 +31,13 @@ public class Terminator {
         PRESERVE,
         DROP
     }
         PRESERVE,
         DROP
     }
+
+    @Override
+    public String toString() {
+        return "Terminator{" +
+                "startSequence='" + startSequence + '\'' +
+                ", endSequence='" + endSequence + '\'' +
+                ", termination=" + termination +
+                '}';
+    }
 }
 }
index 92997dd..86d7a1b 100755 (executable)
@@ -18,4 +18,12 @@ public class TokenizerMatch {
         this.token = token;
         this.terminator = terminator;
     }
         this.token = token;
         this.terminator = terminator;
     }
+
+    @Override
+    public String toString() {
+        return "TokenizerMatch{" +
+                "token='" + token + '\'' +
+                ", terminator=" + terminator +
+                '}';
+    }
 }
 }