From 84d27634f0fabc23040c258d00b03ff8378c2e77 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 11 Oct 2017 17:23:24 +0300 Subject: [PATCH] Make terminator details immutable and public. --- .../commons/string/tokenizer/Terminator.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; } -- 2.20.1