| java.lang.Object bossa.util.Util
Util | public class Util (Code) | | Set of useful static methods.
|
Method Summary | |
public static String | has(int number, String word, int not) | public static String | map(Collection c) | public static String | map(String init, String delim, String end, Collection c) | public static String | map(String init, String delim, String end, Collection c, int param) | public static String | map(String init, String delim, String end, boolean alwaysInitEnd, Collection c) | public static String | map(String init, boolean keyFirst, String delim1, String delim2, String end, Set s) | public static String | map(String init, String delim, String end, Object[] c) | public static String | plural(int number, String word) | public static String | simpleName(String fullyQualifiedName) |
has | public static String has(int number, String word, int not)(Code) | | returns:
" has no bars"
" has 1 bar"
" has n bars"
or, if 0 < number < not
" has only 1 bar"
" has only n bars"
|
|
|