Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.util
Class ArraySortedSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by oracle.javatools.util.ArraySortedSet<E>
              extended by oracle.ide.util.ArraySortedSet<E>
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>, java.util.SortedSet<E>

Deprecated. Use ArraySortedSet

public class ArraySortedSet<E>
extends ArraySortedSet<E>

The ArraySortedSet is an array implementation of the SortedSet interface. This implementation has significantly lower memory overhead than TreeSet (about 4 bytes per element vs. 40 bytes per element) and is intended to be a replacement for the use of TreeSet for sets containing under 3000 elements.

The main drawback of the array implementation is its worst-case performance characteristics when adding or removing elements in reverse sorted order.

This implementation does not support null elements.


Constructor Summary
ArraySortedSet()
          Deprecated. Construct a new ArraySortedSet of default size, using the default sorting order of the objects added to the set.
ArraySortedSet(java.util.Collection<? extends E> initialContents, java.util.Comparator<? super E> comparator)
          Deprecated. Construct a new ArraySortedSet with the given contents and comparator.
ArraySortedSet(java.util.Comparator<? super E> comparator)
          Deprecated. Construct a new ArraySortedSet of default size, using the specified comparator.
ArraySortedSet(E[] initialContents, java.util.Comparator<? super E> comparator)
          Deprecated. Construct a new ArraySortedSet with the given contents and comparator.
ArraySortedSet(int initialSize)
          Deprecated. Construct a new ArraySortedSet of specified size, using the default sorting order of the objects addded to the set.
ArraySortedSet(int initialSize, java.util.Comparator<? super E> comparator)
          Deprecated. Construct a new ArraySortedSet of specified size, using the specified comparator.
 
Method Summary
protected  ArraySortedSet<E> newArraySortedSet(int initialSize, java.util.Comparator<? super E> comparator)
          Deprecated.  
 
Methods inherited from class oracle.javatools.util.ArraySortedSet
add, addAll, clear, clone, comparator, contains, first, headSet, intern, isEmpty, iterator, last, lookup, remove, size, subSet, tailSet, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll
 

Constructor Detail

ArraySortedSet

public ArraySortedSet()
Deprecated. 
Construct a new ArraySortedSet of default size, using the default sorting order of the objects added to the set.


ArraySortedSet

public ArraySortedSet(int initialSize)
Deprecated. 
Construct a new ArraySortedSet of specified size, using the default sorting order of the objects addded to the set.

Parameters:
initialSize - the initial capacity of the set

ArraySortedSet

public ArraySortedSet(java.util.Comparator<? super E> comparator)
Deprecated. 
Construct a new ArraySortedSet of default size, using the specified comparator.

Parameters:
comparator - the comparator to use

ArraySortedSet

public ArraySortedSet(int initialSize,
                      java.util.Comparator<? super E> comparator)
Deprecated. 
Construct a new ArraySortedSet of specified size, using the specified comparator.

Parameters:
initialSize - the initial capacity of the set
comparator - the comparator to use

ArraySortedSet

public ArraySortedSet(E[] initialContents,
                      java.util.Comparator<? super E> comparator)
Deprecated. 
Construct a new ArraySortedSet with the given contents and comparator. All objects in the array will be added to the set.

Parameters:
initialContents - the initial contents to add to the set
comparator - the comparator to use

ArraySortedSet

public ArraySortedSet(java.util.Collection<? extends E> initialContents,
                      java.util.Comparator<? super E> comparator)
Deprecated. 
Construct a new ArraySortedSet with the given contents and comparator. All objects in the collection will be added to the set.

Parameters:
initialContents - the initial contents to add to the set
comparator - the comparator to use.
Method Detail

newArraySortedSet

protected ArraySortedSet<E> newArraySortedSet(int initialSize,
                                              java.util.Comparator<? super E> comparator)
Deprecated. 
Overrides:
newArraySortedSet in class ArraySortedSet<E>

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.