|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.util.Util
public class Util
Some utility methods for dealing with collections.
| Method Summary | ||
|---|---|---|
static java.lang.String |
createUniqueTimeStamp()
|
|
static
|
difference(java.util.Collection<T> c1,
java.util.Collection<T> c2)
Returns a such that a exists in c1 but not in c2. |
|
static
|
equals(java.util.Collection<T> c1,
java.util.Collection<T> c2)
true if for each a in c1, a exists in c2, and if for each b in c2, b exist in c1 and c1 and c2 are the same size. |
|
static
|
intersection(java.util.Collection<T> c1,
java.util.Collection<T> c2)
return a such that a exists in c1 and a exists in c2. |
|
static boolean |
isMailValid(java.lang.String emailAddress)
allow multiple fully qualified email adresses seperated by spaces, or a blank string |
|
static
|
shiftElementsToEnd(java.util.List<T> source,
int count)
returns a list of everything in source, with the first count units moved to the end |
|
static
|
someIntersect(java.util.Collection<T> c1,
java.util.Collection<T> c2)
Equivalent to ! |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> java.util.List<T> intersection(java.util.Collection<T> c1,
java.util.Collection<T> c2)
public static <T> boolean someIntersect(java.util.Collection<T> c1,
java.util.Collection<T> c2)
public static <T> java.util.List<T> difference(java.util.Collection<T> c1,
java.util.Collection<T> c2)
public static <T> boolean equals(java.util.Collection<T> c1,
java.util.Collection<T> c2)
public static <T> java.util.List<T> shiftElementsToEnd(java.util.List<T> source,
int count)
public static boolean isMailValid(java.lang.String emailAddress)
public static java.lang.String createUniqueTimeStamp()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||