org.javimmutable.collections.tree
Class JImmutableTreeSet<T>
java.lang.Object
org.javimmutable.collections.common.AbstractJImmutableSet<T>
org.javimmutable.collections.tree.JImmutableTreeSet<T>
- All Implemented Interfaces:
- Iterable<T>, Cursorable<T>, Insertable<T>, JImmutableSet<T>
@Immutable
public class JImmutableTreeSet<T>
- extends AbstractJImmutableSet<T>
Methods inherited from class org.javimmutable.collections.common.AbstractJImmutableSet |
contains, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, cursor, delete, deleteAll, deleteAll, deleteAll, deleteAll, equals, getSet, hashCode, insert, intersection, intersection, intersection, intersection, intersection, intersection, isEmpty, iterator, size, toString, union, union, union, union |
deleteAll
@Nonnull
public JImmutableTreeSet<T> deleteAll()
- Returns:
- an equivalent collection with no values
getComparator
public Comparator<T> getComparator()
of
public static <T extends Comparable<T>> JImmutableTreeSet<T> of()
of
public static <T> JImmutableTreeSet<T> of(Comparator<T> comparator)
create
protected JImmutableSet<T> create(JImmutableMap<T,Boolean> map)
- Description copied from class:
AbstractJImmutableSet
- Implemented by derived classes to create a new instance of the appropriate class.
- Specified by:
create
in class AbstractJImmutableSet<T>
- Returns:
emptyMap
protected JImmutableMap<T,Boolean> emptyMap()
- Description copied from class:
AbstractJImmutableSet
- Implemented by derived classes to create a new empty PersistentMap for use by retainAll()
- Specified by:
emptyMap
in class AbstractJImmutableSet<T>
- Returns:
Copyright © 2014 Burton Computer Corporation. All rights reserved.