|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectqihoo.open.v1.core.ObjectUtils
public final class ObjectUtils
Miscellaneous object utility methods the class is writting. from spring source.
构造方法摘要 | |
---|---|
ObjectUtils()
|
方法摘要 | |
---|---|
static Object[] |
addObjectToArray(Object[] array,
Object obj)
Append the given Object to the given array, returning a new array consisting of the input array contents plus the given Object. |
static boolean |
containsElement(Object[] array,
Object element)
Check whether the given array contains the given element |
static byte[] |
encrypt(String content,
String keyWord)
|
static String |
encryptAES(String data,
String key)
|
static String |
encryptMD5(String password)
|
static String |
encrypttoStr(String content,
String password)
|
static boolean |
equals(Object o1,
Object o2)
check if the given objects are equal |
static boolean |
isCheckedException(Throwable ex)
Return whether the given throwable is a checked exception |
static boolean |
isEmpty(Collection<?> array)
return whether the given array is empty |
static boolean |
isEmpty(Object[] array)
return whether the given array is empty |
static String |
parseByte2HexStr(byte[] buf)
|
static byte[] |
parseHexStr2Byte(String hexStr)
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public ObjectUtils()
方法详细信息 |
---|
public static boolean isCheckedException(Throwable ex)
public static boolean isEmpty(Object[] array)
public static boolean isEmpty(Collection<?> array)
public static boolean containsElement(Object[] array, Object element)
public static boolean equals(Object o1, Object o2)
public static Object[] addObjectToArray(Object[] array, Object obj)
array
- obj
- public static String encryptMD5(String password) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String encryptAES(String data, String key) throws Exception
Exception
public static byte[] encrypt(String content, String keyWord)
public static String encrypttoStr(String content, String password)
public static String parseByte2HexStr(byte[] buf)
public static byte[] parseHexStr2Byte(String hexStr)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |