public class Property extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
LINE_SEPARATOR |
| Constructor and Description |
|---|
Property(String s) |
Property(String name,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
appendLine(StringBuilder sb,
Object... ss) |
static Pattern |
compilePattern(String key,
boolean ignoreCase) |
static String |
concat(Collection<String> ss,
char delim) |
static String |
concat(String[] ss,
char delim) |
static <T> boolean |
contains(T[] a,
T o) |
static boolean |
containsWildCard(String s) |
static String |
cut(String s,
int index,
char delim) |
boolean |
equals(Object obj) |
static <T> boolean |
equals(T o1,
T o2) |
static String |
formatDS(double d) |
static String |
formatDS(float f) |
static <T> T |
getFrom(Property[] props,
String name,
T defVal) |
String |
getName() |
Object |
getValue() |
int |
hashCode() |
static boolean |
isIPAddr(String s) |
static boolean |
isUpperCase(String s) |
static String |
maskEmpty(String s,
String mask) |
static String[] |
maskNull(String[] ss) |
static <T> T |
maskNull(T o,
T mask) |
static boolean |
matches(String s,
String key,
boolean matchNullOrEmpty,
boolean ignoreCase) |
static <T> T |
nullify(T o,
T val) |
static double |
parseDS(String s) |
static int |
parseIS(String s) |
static String |
replaceSystemProperties(String s) |
static String[] |
requireContainsNoEmpty(String[] ss,
String message) |
static String |
requireNotEmpty(String s,
String message) |
static <T> T[] |
requireNotEmpty(T[] a,
String message) |
void |
setAt(Object o) |
static String[] |
split(String s,
char delim) |
static Object |
splitAndTrim(String s,
char delim) |
String |
toString() |
static String |
trimTrailing(String s) |
static String |
truncate(String s,
int maxlen) |
static Property[] |
valueOf(String[] ss) |
public static String LINE_SEPARATOR
public Property(String s)
public static StringBuilder appendLine(StringBuilder sb, Object... ss)
public static String concat(Collection<String> ss, char delim)
public static int parseIS(String s)
public static double parseDS(String s)
public static String formatDS(float f)
public static String formatDS(double d)
public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase)
public static boolean containsWildCard(String s)
public static <T> T maskNull(T o,
T mask)
public static <T> T nullify(T o,
T val)
public static <T> boolean equals(T o1,
T o2)
public static boolean isUpperCase(String s)
public static boolean isIPAddr(String s)
public static <T> boolean contains(T[] a,
T o)
public static <T> T[] requireNotEmpty(T[] a,
String message)
public final String getName()
public final Object getValue()
public void setAt(Object o)
Copyright © 2020. All rights reserved.