public class Pojos
extends java.lang.Object
DataObject
sConstructor and Description |
---|
Pojos() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<java.lang.Long> |
extractIds(java.util.Collection<? extends DataObject> pojos)
Extract the (distinct) ids from a collection of
DataObject s |
static boolean |
hasID(DataObject obj)
Checks if a DataObject Pojo is not null and has an ID
|
static <T extends DataObject> |
relativeComplement(java.util.Collection<T> coll1,
java.util.Collection<T> coll2)
Get the relative complement of coll1 in coll2
|
public static java.util.Collection<java.lang.Long> extractIds(java.util.Collection<? extends DataObject> pojos)
DataObject
spojos
- The DataObject
spublic static <T extends DataObject> java.util.Collection<T> relativeComplement(java.util.Collection<T> coll1, java.util.Collection<T> coll2)
coll1
- The collectioncoll2
- The other collectionpublic static boolean hasID(DataObject obj)
obj
- The DataObject