define UTF-8 as source code encoding
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / string / CuttableString.java
old mode 100644 (file)
new mode 100755 (executable)
index 11de15b..278673b
@@ -1,3 +1,12 @@
+/*
+ * Svjatoslav Commons - shared library of common functionality.
+ * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+ */
+
 package eu.svjatoslav.commons.string;
 
 public class CuttableString {
@@ -26,8 +35,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;
+       }
 }