X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fstring%2FCuttableString.java;h=6fd0707d8c95573164a689e19540c268da39b4e1;hb=30d5a74b04947e845e4b8f4ae3220452d5b1de2c;hp=11de15babb7674f791a0a131575f677e8abb2e85;hpb=26f09b1ebcafae67855b55ad588d5332a107d202;p=svjatoslav_commons.git diff --git a/src/main/java/eu/svjatoslav/commons/string/CuttableString.java b/src/main/java/eu/svjatoslav/commons/string/CuttableString.java index 11de15b..6fd0707 100644 --- a/src/main/java/eu/svjatoslav/commons/string/CuttableString.java +++ b/src/main/java/eu/svjatoslav/commons/string/CuttableString.java @@ -1,3 +1,12 @@ +/* + * Svjatoslav Commons - shared library of common functionality. + * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public License + * 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; + } }