java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.fren_gor.ultimateAdvancementAPI.nms.util.ListSet<E>
Type Parameters:
E - The type of the elements of this Set.
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public final class ListSet<E> extends AbstractSet<E> implements Set<E>
Immutable copy of the non-null elements of a Set.

The implementation uses an immutable array-based list to store the elements of the original Set in order to minimize the copy operation cost.

Since ListSet is immutable and contains only the elements of one other Set, it respects all the properties of a Set.

This class is thread safe.