public class CollectionImmutability extends Object implements Predicate<Object>
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(Predicate<Object> elementImmutability) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.