|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jutil.java.collections.Collections
A utility class for perform operations on collections similar to java.util.Collections.
| Class Specifications |
|
public invariant_redundantly ( \forall Collection c; c != null; ( \forall Object o1; c.contains(o1); ( \exists Object o2; containsExplicitly(c,o2); ((o1 == null)&&(o2 == null))||((o1 != null)&&(o1.equals(o2)))))); public invariant_redundantly ( \forall Collection c; c != null; ( \forall Object o2; containsExplicitly(c,o2); c.contains(o2))); |
| Field Summary | |
static java.lang.String |
CVS_REVISION
|
| Constructor Summary | |
Collections()
|
|
| Method Summary | |
static boolean |
containsExplicitly(java.util.Collection collection,
java.lang.Object element)
Check whether or not the given collection contains the given element when using == for comparison instead of equals(). |
static boolean |
identical(java.util.Collection first,
java.util.Collection second)
Check whether the two given collections contain the same elements. |
static boolean |
identical(java.util.Map first,
java.util.Map second)
Check whether the two given maps contain the same entries. |
static int |
nbExplicitOccurrences(java.lang.Object element,
java.util.Collection collection)
Return the number of times |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CVS_REVISION
| Constructor Detail |
public Collections()
| Method Detail |
public static boolean containsExplicitly(java.util.Collection collection,
java.lang.Object element)
collection - The collectionelement - The element
public static int nbExplicitOccurrences(java.lang.Object element,
java.util.Collection collection)
element - The element of which the number of occurrences is requested.collection - The collection in which the number of occurrences has to be counted.
public static boolean identical(java.util.Collection first,
java.util.Collection second)
first - The first collectionsecond - The second collection
public static boolean identical(java.util.Map first,
java.util.Map second)
first - The first mapsecond - The second map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||