Class CollectionImmutability
- java.lang.Object
-
- org.wildfly.clustering.ee.immutable.CollectionImmutability
-
- All Implemented Interfaces:
Predicate<Object>,Immutability
public class CollectionImmutability extends Object implements Immutability
Tests the immutability ofCollectionswrappers. N.B. Strictly speaking, an unmodifiable collection is not necessarily immutable since the collection can still be modified through a reference to the delegate collection. Were this the case, the immutability test would also run against the delegate collection - and fail, forcing replication.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CollectionImmutability(Immutability elementImmutability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(Object object)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ee.Immutability
and, negate, or
-
-
-
-
Constructor Detail
-
CollectionImmutability
public CollectionImmutability(Immutability elementImmutability)
-
-