Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
protected static Object[] |
EMPTY_ARGUMENTS |
|
protected static BigInteger |
ONE_NEG |
Type | Name and description |
---|---|
static Collection |
arrayAsCollection(Object value) |
static Collection<T> |
arrayAsCollection(T[] value) |
static Object |
asArray(Object object, Class type) |
static Collection<T> |
asCollection(T[] value) |
static Collection |
asCollection(Object value) |
static boolean |
booleanUnbox(Object value) |
static Object |
box(boolean value) |
static Object |
box(byte value) |
static Object |
box(char value) |
static Object |
box(short value) |
static Object |
box(int value) |
static Object |
box(long value) |
static Object |
box(float value) |
static Object |
box(double value) |
static byte |
byteUnbox(Object value) |
static boolean |
castToBoolean(Object object) Method used for coercing an object to a boolean value, thanks to an asBoolean() method added on types. |
static char |
castToChar(Object object) |
static Number |
castToNumber(Object object) |
static Number |
castToNumber(Object object, Class type) |
static Object |
castToType(Object object, Class type) |
static Object |
castToVargsArray(Object[] origin, int firstVargsPos, Class<?> arrayType) |
static char |
charUnbox(Object value) |
static boolean |
compareArrayEqual(Object left, Object right) |
static boolean |
compareEqual(Object left, Object right) |
static int |
compareTo(Object left, Object right) Compares the two objects handling nulls gracefully and performing numeric type coercion if required |
static boolean[] |
convertToBooleanArray(Object a) |
static byte[] |
convertToByteArray(Object a) |
static char[] |
convertToCharArray(Object a) |
static double[] |
convertToDoubleArray(Object a) |
static float[] |
convertToFloatArray(Object a) |
static int[] |
convertToIntArray(Object a) |
static long[] |
convertToLongArray(Object a) |
static Object |
convertToPrimitiveArray(Object a, Class type) |
static short[] |
convertToShortArray(Object a) |
static double |
doubleUnbox(Object value) |
static float |
floatUnbox(Object value) |
static Character |
getCharFromSizeOneString(Object value) |
static int |
intUnbox(Object value) |
static boolean |
isEnumSubclass(Object value) Determines whether the value object is a Class object representing a subclass of java.lang.Enum. |
static long |
longUnbox(Object value) |
static Object[] |
primitiveArrayBox(Object array) |
static List |
primitiveArrayToList(Object array) Allows conversion of arrays into a mutable List |
static short |
shortUnbox(Object value) |
Method used for coercing an object to a boolean value,
thanks to an asBoolean()
method added on types.
object
- to coerce to a boolean valueCompares the two objects handling nulls gracefully and performing numeric type coercion if required
Determines whether the value object is a Class object representing a subclass of java.lang.Enum. Uses class name check to avoid breaking on pre-Java 5 JREs.
value
- an objectAllows conversion of arrays into a mutable List
array
- an array