Make terminator details immutable and public.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:23:24 +0000 (17:23 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 11 Oct 2017 14:23:24 +0000 (17:23 +0300)
src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java

index 39718cd..ae51c29 100755 (executable)
@@ -11,12 +11,13 @@ package eu.svjatoslav.commons.string.tokenizer;
 
 public class Terminator {
 
-    final String startSequence;
-    String endSequence;
-    TerminationStrategy termination;
+    public final String startSequence;
+    public final String endSequence;
+    public final TerminationStrategy termination;
 
-    public Terminator(final String startPattern, TerminationStrategy termination) {
-        startSequence = startPattern;
+    public Terminator(final String startSequence, TerminationStrategy termination) {
+        this.startSequence = startSequence;
+        this.endSequence = null;
         this.termination = termination;
     }