public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Utils
|
static interface |
Utils
|
static interface |
Utils
|
| Modifier and Type | Field and Description |
|---|---|
static int |
INTEGER_POOL_MAX_VALUE
|
| Constructor and Description |
|---|
Utils()
|
| Modifier and Type | Method and Description |
|---|---|
static String |
capitalize(String
|
static String |
decapitalize(String
|
static <T> T |
find(List
Find exact object type or sublass of cl in list
|
static <T> int |
indexOf(List
|
static String |
join(Object
|
static <T> int |
lastIndexOf(List
|
static <T extends GrammarAST |
nodesToStrings(List
|
static <From |
select(List
apply methodName to list and return list of results.
|
static void |
setSize(List
|
static String |
sortLinesInString(String
|
static String |
stripFileExtension(String
Integer objects are immutable so share all Integers with the same value up to some max size.
|
public static final int INTEGER_POOL_MAX_VALUE
public static StringstripFileExtension(String name)
public static <T extends GrammarAST> List <String > nodesToStrings(List <T> nodes)
public static <From,To> List <To> select(List <From> list, Utils .Func1 <From ,To> selector)
public static <T> T find(List<?> ops, Class <T> cl)
public static <T> int indexOf(List<? extends T> elems, Utils .Filter <T> filter)
public static <T> int lastIndexOf(List<? extends T> elems, Utils .Filter <T> filter)
public static void setSize(List<?> list, int size)