|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.util.CollectionUtil
public class CollectionUtil
This class provides static utility methods for handling Collections.
| Constructor Summary | |
|---|---|
CollectionUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
appendElements(java.util.Collection<? extends T> src,
java.util.Collection<? super T> dest)
Append elements from src to dest. |
|
static
|
copyElements(java.util.Collection<? extends T> src,
java.util.Collection<? super T> dest,
boolean clearDestination)
Copy elements from src to dest. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtil()
| Method Detail |
|---|
public static <T> void appendElements(java.util.Collection<? extends T> src,
java.util.Collection<? super T> dest)
src - - Collection containing data to be appended.dest - - Collection to have data appended to.
public static <T> void copyElements(java.util.Collection<? extends T> src,
java.util.Collection<? super T> dest,
boolean clearDestination)
src - - Collection containing data to be copied.dest - - Collection to have the data copied to.clearDestination - - whether to clear all contents from destination prior to copying.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||