public final class DataUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
DataUtil.EmptyIterator
Due to [woodstox#10], we will need to use a work-around which (for now)
includes a local copy of this iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static char[] |
EMPTY_CHAR_ARRAY |
(package private) static java.lang.Long |
MAX_LONG |
(package private) static java.lang.String |
NO_TYPE |
| Modifier | Constructor and Description |
|---|---|
private |
DataUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
anyValuesInCommon(java.util.Collection<T> c1,
java.util.Collection<T> c2)
Method that can be used to efficiently check if 2 collections
share at least one common element.
|
static <T> java.util.Iterator<T> |
emptyIterator() |
static char[] |
getEmptyCharArray() |
static int[] |
growArrayBy(int[] arr,
int more) |
static java.lang.String[] |
growArrayBy(java.lang.String[] arr,
int more) |
static java.lang.Object |
growArrayBy50Pct(java.lang.Object arr) |
static java.lang.Object |
growArrayToAtLeast(java.lang.Object arr,
int minLen)
Method similar to
growArrayBy50Pct(java.lang.Object), but it also ensures that
the new size is at least as big as the specified minimum size. |
static java.lang.Integer |
Integer(int i) |
static java.lang.Long |
Long(long l)
Deprecated.
|
static <T> java.util.Iterator<T> |
singletonIterator(T item) |
static final char[] EMPTY_CHAR_ARRAY
static final java.lang.Long MAX_LONG
static final java.lang.String NO_TYPE
public static char[] getEmptyCharArray()
public static java.lang.Integer Integer(int i)
@Deprecated public static java.lang.Long Long(long l)
public static <T> java.util.Iterator<T> singletonIterator(T item)
public static <T> java.util.Iterator<T> emptyIterator()
public static <T> boolean anyValuesInCommon(java.util.Collection<T> c1,
java.util.Collection<T> c2)
public static java.lang.Object growArrayBy50Pct(java.lang.Object arr)
public static java.lang.Object growArrayToAtLeast(java.lang.Object arr,
int minLen)
growArrayBy50Pct(java.lang.Object), but it also ensures that
the new size is at least as big as the specified minimum size.public static java.lang.String[] growArrayBy(java.lang.String[] arr,
int more)
public static int[] growArrayBy(int[] arr,
int more)