| Modifier and Type | Field and Description |
|---|---|
private static Iterator |
EMPTY_ITERATOR
.
|
private static Pattern |
FOO |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <E> E |
first(Iterable<E> elements) |
static String |
globexToRegex(String globex)
Create a pattern that transforms a glob expression into a regular expression, the following task are supported
* : Match any number of unknown characters
? : Match one unknown character
[characters] : Match a character as part of a group of characters
\ : Escape character
|
static int |
indexOf(CharSequence s,
int off,
char c) |
static <E> Iterator<E> |
iterator() |
static <E> Iterator<E> |
iterator(E element) |
static <E> List<E> |
list(E... elements) |
static <E> List<E> |
list(Iterable<E> iterable) |
static <E> List<E> |
list(Iterator<E> iterator) |
static <K,V> HashMap<K,V> |
map(K key,
V value) |
static <K,V,M extends Map<K,V>> |
map(M map,
K key,
V value) |
static <E> ArrayList<E> |
newArrayList() |
static <K,V> HashMap<K,V> |
newHashMap() |
static <E> HashSet<E> |
newHashSet() |
static <E> LinkedList<E> |
newLinkedList() |
static <E> E |
notNull(E e1,
E e2) |
static String |
trimLeft(String s) |
private static final Iterator EMPTY_ITERATOR
public Utils()
public static <E> ArrayList<E> newArrayList()
public static <E> LinkedList<E> newLinkedList()
public static <E> HashSet<E> newHashSet()
public static <K,V> HashMap<K,V> newHashMap()
public static int indexOf(CharSequence s, int off, char c)
public static <E> E notNull(E e1, E e2)
public static String globexToRegex(String globex) throws NullPointerException
globex - the glob expressionNullPointerException - when the globex argument is nullCopyright © 2013 eXo Platform SAS. All Rights Reserved.