| java.lang.Object de.danet.an.util.Misc
Misc | public class Misc (Code) | | This class provides general utility functions.
author: Michael Lipp |
Method Summary | |
public static boolean | equals(Object o1, Object o2) Compare two objects, handling null values properly.
The method returns true if both parameters are
null or if they are both not null
and o1.equals(o2) . | public static String | join(String[] values, String sep) Join the given strings with the given separator. | public static String | join(Enumeration values, String sep) Join the given enumeration of strings with the given separator. | public static Locale | localeFromString(String localeName) Find the locale for the given result from
Locale.toString () . |
equals | public static boolean equals(Object o1, Object o2)(Code) | | Compare two objects, handling null values properly.
The method returns true if both parameters are
null or if they are both not null
and o1.equals(o2) .
Parameters: o1 - one object Parameters: o2 - another object true if objects are equal |
join | public static String join(String[] values, String sep)(Code) | | Join the given strings with the given separator.
Parameters: values - the values Parameters: sep - the separator |
join | public static String join(Enumeration values, String sep)(Code) | | Join the given enumeration of strings with the given separator.
Parameters: values - the values Parameters: sep - the separator |
localeFromString | public static Locale localeFromString(String localeName)(Code) | | Find the locale for the given result from
Locale.toString () .
Parameters: localeName - the locale the result |
|
|