Save This Page
Home » openjdk-7 » java » util » [javadoc | source]
java.util
class: JumboEnumSet [javadoc | source]
java.lang.Object
   java.util.AbstractCollection<E>
      java.util.AbstractSet<E>
         java.util.EnumSet<E>
            java.util.JumboEnumSet

All Implemented Interfaces:
    Cloneable, java$io$Serializable, Set, Collection

Private implementation class for EnumSet, for "jumbo" enum types (i.e., those with more than 64 elements).
Fields inherited from java.util.EnumSet:
elementType,  universe
Constructor:
 JumboEnumSet(Class<E> elementType,
    Enum[] universe) 
Method from java.util.JumboEnumSet Summary:
add,   addAll,   addAll,   addRange,   clear,   clone,   complement,   contains,   containsAll,   equals,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size
Methods from java.util.EnumSet:
addAll,   addRange,   allOf,   clone,   complement,   complementOf,   copyOf,   copyOf,   noneOf,   of,   of,   of,   of,   of,   of,   range,   typeCheck,   writeReplace
Methods from java.util.AbstractSet:
equals,   hashCode,   removeAll
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.JumboEnumSet Detail:
 public boolean add(E e) 
    Adds the specified element to this set if it is not already present.
  void addAll() 
 public boolean addAll(Collection<? extends E> c) 
    Adds all of the elements in the specified collection to this set.
  void addRange(E from,
    E to) 
 public  void clear() 
    Removes all of the elements from this set.
 public EnumSet<E> clone() 
  void complement() 
 public boolean contains(Object e) 
    Returns true if this set contains the specified element.
 public boolean containsAll(Collection<?> c) 
    Returns true if this set contains all of the elements in the specified collection.
 public boolean equals(Object o) 
    Compares the specified object with this set for equality. Returns true if the given object is also a set, the two sets have the same size, and every member of the given set is contained in this set.
 public boolean isEmpty() 
    Returns true if this set contains no elements.
 public Iterator<E> iterator() 
    Returns an iterator over the elements contained in this set. The iterator traverses the elements in their natural order (which is the order in which the enum constants are declared). The returned Iterator is a "weakly consistent" iterator that will never throw ConcurrentModificationException .
 public boolean remove(Object e) 
    Removes the specified element from this set if it is present.
 public boolean removeAll(Collection<?> c) 
    Removes from this set all of its elements that are contained in the specified collection.
 public boolean retainAll(Collection<?> c) 
    Retains only the elements in this set that are contained in the specified collection.
 public int size() 
    Returns the number of elements in this set.