From fd11188a5ee3da3c65fda5c2006a14c216ed6da3 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 3 May 2013 13:26:06 +0300 Subject: [PATCH] improved cuttable string --- .../eu/svjatoslav/commons/string/CuttableString.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/svjatoslav/commons/string/CuttableString.java b/src/main/java/eu/svjatoslav/commons/string/CuttableString.java index 11de15b..2adeba2 100644 --- a/src/main/java/eu/svjatoslav/commons/string/CuttableString.java +++ b/src/main/java/eu/svjatoslav/commons/string/CuttableString.java @@ -26,8 +26,15 @@ public class CuttableString { return result; } - public boolean isEmpty() { - return value.length() == 0; + public int getLength() { + return value.length(); }; + public String getValue() { + return value; + } + + public boolean isEmpty() { + return value.length() == 0; + } } -- 2.20.1