public final class DataUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
anyValuesInCommon(Collection<T> c1,
Collection<T> c2)
Method that can be used to efficiently check if 2 collections
share at least one common element.
|
static <T> Iterator<T> |
emptyIterator() |
static char[] |
getEmptyCharArray() |
static int[] |
growArrayBy(int[] arr,
int more) |
static String[] |
growArrayBy(String[] arr,
int more) |
static Object |
growArrayBy50Pct(Object arr) |
static Object |
growArrayToAtLeast(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 Integer |
Integer(int i) |
static <T> Iterator<T> |
singletonIterator(T item) |
public static char[] getEmptyCharArray()
public static Integer Integer(int i)
public static <T> Iterator<T> singletonIterator(T item)
public static <T> Iterator<T> emptyIterator()
public static <T> boolean anyValuesInCommon(Collection<T> c1, Collection<T> c2)
public static Object growArrayToAtLeast(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 int[] growArrayBy(int[] arr, int more)
Copyright © 2018 FasterXML. All rights reserved.