improved cuttable string
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 3 May 2013 10:26:06 +0000 (13:26 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 3 May 2013 10:26:06 +0000 (13:26 +0300)
src/main/java/eu/svjatoslav/commons/string/CuttableString.java

index 11de15b..2adeba2 100644 (file)
@@ -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;
+       }
 }