Class ImmutableCollection<E>

java.lang.Object
java.util.AbstractCollection<E>
com.google.common.collect.ImmutableCollection<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>
Direct Known Subclasses:
ImmutableList, ImmutableMultiset, ImmutableSet

@GwtCompatible(emulated=true) @Deprecated(since="2022-12-01") public abstract class ImmutableCollection<E> extends AbstractCollection<E> implements Serializable
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An immutable collection. Does not permit null elements.

In addition to the Collection methods, this class has an asList() method, which returns a list view of the collection's elements.

Note: Although this class is not final, it cannot be subclassed outside of this package as it has no public or protected constructors. Thus, instances of this type are guaranteed to be immutable.

Since:
2.0 (imported from Google Collections Library)
See Also: