public final class JavaUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableMap<Class<?>,Class<?>> |
BOXING_CLASSES |
static com.google.common.base.Function<Class<?>,String> |
CLASS_TO_CLASS_NAME |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyProperties(Object source,
Object destination) |
static String |
getEscapedString(String s)
Escapes string into Java language expression |
static String |
getEscapedStringsArray(Iterable<String> strings)
Escapes sequence of strings into comma-separated sequence of Java language expressions |
static boolean |
isalnum(char c)
Returns true if the char isalpha() or isdigit().
|
static boolean |
isalpha(char c)
Returns true if the char isupper() or islower().
|
static boolean |
isdigit(char c)
Returns true if the char is from '0' to '9' inclusive.
|
static boolean |
islower(char c)
Returns true if the char is from 'a' to 'z' inclusive.
|
static boolean |
isupper(char c)
Returns true if the char is from 'A' to 'Z' inclusive.
|
static Class<?> |
toBoxingClass(Class<?> targetType) |
static void |
writeProperty(Object source,
Object destination,
PropertyDescriptor targetProperty,
PropertyDescriptor sourceProperty) |
public static final com.google.common.collect.ImmutableMap<Class<?>,Class<?>> BOXING_CLASSES
public static String getEscapedString(String s)
Escapes string into Java language expression
s - public static String getEscapedStringsArray(Iterable<String> strings)
Escapes sequence of strings into comma-separated sequence of Java language expressions
strings - public static boolean isalnum(char c)
public static boolean isalpha(char c)
public static boolean isupper(char c)
public static boolean islower(char c)
public static boolean isdigit(char c)
public static void copyProperties(Object source, Object destination) throws CdkException
CdkExceptionpublic static void writeProperty(Object source, Object destination, PropertyDescriptor targetProperty, PropertyDescriptor sourceProperty) throws IllegalAccessException, InvocationTargetException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.