public class CollectionImmutability extends Object implements Immutability
Collections wrappers.
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.| Constructor and Description |
|---|
CollectionImmutability(Immutability elementImmutability) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(Object object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, negate, orpublic CollectionImmutability(Immutability elementImmutability)
Copyright © 2019 JBoss by Red Hat. All rights reserved.