From: Svjatoslav Agejenko Date: Wed, 11 Oct 2017 14:23:24 +0000 (+0300) Subject: Make terminator details immutable and public. X-Git-Tag: svjatoslavcommons-1.8~57 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=84d27634f0fabc23040c258d00b03ff8378c2e77;p=svjatoslav_commons.git Make terminator details immutable and public. --- 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 39718cd..ae51c29 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java @@ -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; }