X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fstring%2Ftokenizer%2FTerminator.java;h=8dc20ac4a17fb3ae6edabf06eb83386a2a0771b3;hb=c378ab1acf1d7299a572e4a5fc38996ee0408602;hp=c1d19832b990ea55f3eb5f5bcb139519c33dc56d;hpb=ba10494483d7eaf1e9d58ddb1402806c8fc58178;p=svjatoslav_commons.git 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 c1d1983..8dc20ac 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/Terminator.java @@ -40,12 +40,7 @@ public class Terminator { return true; } - public enum TerminationStrategy { - PRESERVE, - DROP - } - - public boolean hasEndSequence(){ + public boolean hasEndSequence() { return endSequence != null; } @@ -57,4 +52,9 @@ public class Terminator { ", termination=" + termination + '}'; } + + public enum TerminationStrategy { + PRESERVE, + DROP + } }