Changed license to CC0
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / string / tokenizer / TokenizerMatch.java
index b4279ce..a620010 100755 (executable)
@@ -1,21 +1,27 @@
 /*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
+ * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.commons.string.tokenizer;
 
 public class TokenizerMatch {
 
     public final String token;
+    public final String reminder;
     public final Terminator terminator;
 
-    public TokenizerMatch(final String token, final Terminator terminator) {
+    public TokenizerMatch(final String token, final String reminder, final Terminator terminator) {
         this.token = token;
+        this.reminder = reminder;
         this.terminator = terminator;
     }
+
+    @Override
+    public String toString() {
+        return "TokenizerMatch{" +
+                "token='" + token + '\'' +
+                ", reminder='" + reminder + '\'' +
+                ", terminator=" + terminator +
+                '}';
+    }
 }