Class CollectionPartition<T>
java.lang.Object
de.xima.fc.utils.CollectionPartition<T>
- Type Parameters:
T- The type of elements in the collections
- All Implemented Interfaces:
Serializable
Represents a partition of two collections, where:
- inBoth contains elements that are present in both collections
- onlyInFirst contains elements that are only in the first collection
- onlyInSecond contains elements that are only in the second collection
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CollectionPartition
Constructs a new collection partition with the specified sets.- Parameters:
onlyInFirst- Set of elements only in the first collection. null is treated as an empty set.onlyInSecond- Set of elements only in the second collection. null is treated as an empty set.inBoth- Set of elements present in both collections. null is treated as an empty set.
-
-
Method Details
-
equals
-
hashCode
-
inBoth
-
onlyInFirst
-
onlyInSecond
-