|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.util.Utils
public class Utils
Collection of small static helper methods.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static boolean |
equals(java.lang.Object one,
java.lang.Object two)
Will check if both objects are equal but also checks for null. |
static java.lang.String |
getUserDirectory()
Generalize this method instead of calling it directly elsewhere. |
static java.lang.String |
join(java.lang.String delimiter,
java.util.List<java.lang.String> strings)
Joins the given strings. |
static java.lang.String |
join(java.lang.String delimiter,
java.lang.String... strings)
Joins the given strings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String join(java.lang.String delimiter, java.lang.String... strings)
delimiter
- The delimiter to place between the individual strings.strings
- The strings to be joined.
public static java.lang.String join(java.lang.String delimiter, java.util.List<java.lang.String> strings)
delimiter
- The delimiter to place between the individual strings.strings
- The strings to be joined.
public static boolean equals(java.lang.Object one, java.lang.Object two)
one
- First object to comparetwo
- Second object to compare
(one == null && two != null) || (one != null && one.equals(two))
public static java.lang.String getUserDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |