Class RedBlackSet<E>

java.lang.Object
org.jhotdraw8.icollection.RedBlackSet<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Serializable, Iterable<E>, ImmutableCollection<E>, ImmutableNavigableSet<E>, ImmutableSet<E>, ImmutableSortedSet<E>, ReadOnlyCollection<E>, ReadOnlyNavigableSet<E>, ReadOnlySequencedCollection<E>, ReadOnlySequencedSet<E>, ReadOnlySet<E>, ReadOnlySortedSet<E>

public class RedBlackSet<E> extends Object implements ImmutableNavigableSet<E>, Serializable
Implements the ImmutableNavigableSet interface using a Red-Black tree.

References:

For a similar design, see 'TreeSet.java' in vavr. The internal data structure of this class is licensed from vavr.

TreeSet.java. Copyright 2023 (c) vavr. MIT License.
github.com
See Also: