org.javimmutable.collections.tree
Class JImmutableTreeSet<T>

java.lang.Object
  extended by org.javimmutable.collections.common.AbstractJImmutableSet<T>
      extended by 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>


Method Summary
protected  JImmutableSet<T> create(JImmutableMap<T,Boolean> map)
          Implemented by derived classes to create a new instance of the appropriate class.
 JImmutableTreeSet<T> deleteAll()
           
protected  JImmutableMap<T,Boolean> emptyMap()
          Implemented by derived classes to create a new empty PersistentMap for use by retainAll()
 Comparator<T> getComparator()
           
static
<T extends Comparable<T>>
JImmutableTreeSet<T>
of()
           
static
<T> JImmutableTreeSet<T>
of(Comparator<T> comparator)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.