java.lang.Object
org.apache.johnzon.core.util.ArrayUtil
Various Array utils which do not exist in Java or are performing badly.
NOTE: we keep this here and in Mapper duplicated to not have Mapper depending on johnzon-core!
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ArrayUtil
private ArrayUtil()
-
-
Method Details
-
asList
-
asList
-
asList
-
asList
-
asList
-
asList
-
asList
-
asList
-
newCollection
Take the given array object and fill a fresh Collection with it.- Parameters:
array- an array that is to be duplicated- Returns:
- a new collection of the original array elements
- Throws:
IllegalArgumentException- if the given value this is not an array.
-