|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.GumboCollections
Constants and utilities provided by Gumbo that are related to Collections. See StateFlags for additional utilities that can be used with collections in general (such as hasAny(), addedAll(), changedCount()).
Nested Class Summary | |
static class |
GumboCollections.ImmutableCollection
Immutable wrapper for a target collection. |
Field Summary | |
static java.util.Collection |
EMPTY_COLLECTION
A singleton instance of an empty and immutable collection. |
static Group |
EMPTY_GROUP
A singleton instance of an empty and immutable group backed by an empty collection. |
static GroupBimap |
EMPTY_GROUP_BIMAP
A singleton instance of an empty and immutable group bimap. |
static java.util.Iterator |
EMPTY_ITERATOR
A singleton instance of an iterator for an empty and immutable collection. |
static java.util.List |
EMPTY_LIST
A singleton instance of an empty and immutable set. |
static Group |
EMPTY_LIST_GROUP
A singleton instance of an empty and immutable group backed by an empty list. |
static java.util.ListIterator |
EMPTY_LIST_ITERATOR
A singleton instance of a list iterator for an empty and immutable collection. |
static java.util.Map |
EMPTY_MAP
A singleton instance of an empty and immutable map. |
static java.util.Set |
EMPTY_SET
A singleton instance of an empty and immutable set. |
static Group |
EMPTY_SET_GROUP
A singleton instance of an empty and immutable group backed by an empty set. |
static SetList |
EMPTY_SET_LIST
A singleton instance of an empty and immutable listset. |
static Group |
EMPTY_SET_LIST_GROUP
A singleton instance of an empty and immutable group backed by an empty setlist. |
Method Summary | |
static Bimap |
immutableBimap(Bimap target)
Returns an immutable view of a bimap. |
static java.util.Collection |
immutableCollection(java.util.Collection target)
Returns an immutable view of a collection. |
static Group |
immutableGroup(Group target)
Returns an immutable view of a group. |
static GroupBimap |
immutableGroupBimap(GroupBimap target)
Returns an immutable view of a group bimap. |
static java.util.Iterator |
immutableIterator(java.util.Iterator target)
Returns an iterator that preserves the immutability of its target collection. |
static java.util.List |
immutableList(java.util.List target)
Returns an immutable view of a list. |
static java.util.ListIterator |
immutableListIterator(java.util.ListIterator target)
Returns a list iterator that preserves the immutability of its target collection. |
static java.util.Map |
immutableMap(java.util.Map target)
Returns an immutable view of a map. |
static java.util.Set |
immutableSet(java.util.Set target)
Returns an immutable view of a set. |
static SetList |
immutableSetList(SetList target)
Returns an immutable view of a setlist. |
static java.util.Collection |
keepUnique(java.util.Set oldObjs,
java.util.Collection newObjs)
For each new object, checks if it is a member of the old object set. |
static void |
keepUnique(java.util.Set oldObjs,
java.util.Collection newObjs,
java.util.Collection retAdded,
java.util.Collection retRemoved)
For each new object, checks if it is a member of the old object set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.Collection EMPTY_COLLECTION
public static final java.util.List EMPTY_LIST
public static final java.util.Set EMPTY_SET
public static final SetList EMPTY_SET_LIST
public static final Group EMPTY_GROUP
public static final Group EMPTY_SET_GROUP
public static final Group EMPTY_LIST_GROUP
public static final Group EMPTY_SET_LIST_GROUP
public static final java.util.Map EMPTY_MAP
public static final GroupBimap EMPTY_GROUP_BIMAP
public static final java.util.Iterator EMPTY_ITERATOR
public static final java.util.ListIterator EMPTY_LIST_ITERATOR
Method Detail |
public static java.util.Collection keepUnique(java.util.Set oldObjs, java.util.Collection newObjs)
oldObjs
- Old objects (Object), which may be modified. Never null.newObjs
- New objects (Object), which may be modified. Never null.
public static void keepUnique(java.util.Set oldObjs, java.util.Collection newObjs, java.util.Collection retAdded, java.util.Collection retRemoved)
oldObjs
- Old objects (Object), which may be modified. Never null.newObjs
- New objects (Object). Never null.retAdded
- Return value object. Objects (Object) from newObjs
that were "added" to oldObjs as being unique. Ignored if null.retRemoved
- Return value object. Objects (Object) from newObjs
that were "removed" from newObjs as being duplicates. Ignored if null.public static java.util.Collection immutableCollection(java.util.Collection target)
public static Group immutableGroup(Group target)
public static java.util.List immutableList(java.util.List target)
public static java.util.Set immutableSet(java.util.Set target)
public static SetList immutableSetList(SetList target)
public static java.util.Map immutableMap(java.util.Map target)
public static Bimap immutableBimap(Bimap target)
public static GroupBimap immutableGroupBimap(GroupBimap target)
public static java.util.Iterator immutableIterator(java.util.Iterator target)
public static java.util.ListIterator immutableListIterator(java.util.ListIterator target)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |