org.ujmp.core.collections
Class BitSetSet

java.lang.Object
  extended by org.ujmp.core.collections.BitSetSet
All Implemented Interfaces:
Iterable<Integer>, Collection<Integer>, Set<Integer>, SortedSet<Integer>

public class BitSetSet
extends Object
implements Set<Integer>, SortedSet<Integer>


Constructor Summary
BitSetSet()
           
BitSetSet(BitSetSet source)
           
 
Method Summary
 boolean add(Integer e)
           
 void addAll(BitSetSet bss)
           
 boolean addAll(Collection<? extends Integer> c)
           
 void clear()
           
 void clear(int index)
           
 BitSetSet clone()
           
 Comparator<? super Integer> comparator()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 Integer first()
           
 SortedSet<Integer> headSet(Integer toElement)
           
 boolean isEmpty()
           
 Iterator<Integer> iterator()
           
 Integer last()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 void set(int start, int end)
           
 int size()
           
 SortedSet<Integer> subSet(Integer fromElement, Integer toElement)
           
 SortedSet<Integer> tailSet(Integer fromElement)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

BitSetSet

public BitSetSet()

BitSetSet

public BitSetSet(BitSetSet source)
Method Detail

add

public boolean add(Integer e)
Specified by:
add in interface Collection<Integer>
Specified by:
add in interface Set<Integer>

set

public void set(int start,
                int end)

clear

public void clear(int index)

addAll

public boolean addAll(Collection<? extends Integer> c)
Specified by:
addAll in interface Collection<Integer>
Specified by:
addAll in interface Set<Integer>

addAll

public void addAll(BitSetSet bss)

clone

public BitSetSet clone()
Overrides:
clone in class Object

clear

public void clear()
Specified by:
clear in interface Collection<Integer>
Specified by:
clear in interface Set<Integer>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<Integer>
Specified by:
contains in interface Set<Integer>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<Integer>
Specified by:
containsAll in interface Set<Integer>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Integer>
Specified by:
isEmpty in interface Set<Integer>

iterator

public Iterator<Integer> iterator()
Specified by:
iterator in interface Iterable<Integer>
Specified by:
iterator in interface Collection<Integer>
Specified by:
iterator in interface Set<Integer>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<Integer>
Specified by:
remove in interface Set<Integer>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<Integer>
Specified by:
removeAll in interface Set<Integer>

toString

public String toString()
Overrides:
toString in class Object

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<Integer>
Specified by:
retainAll in interface Set<Integer>

size

public int size()
Specified by:
size in interface Collection<Integer>
Specified by:
size in interface Set<Integer>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Integer>
Specified by:
toArray in interface Set<Integer>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<Integer>
Specified by:
toArray in interface Set<Integer>

comparator

public Comparator<? super Integer> comparator()
Specified by:
comparator in interface SortedSet<Integer>

first

public Integer first()
Specified by:
first in interface SortedSet<Integer>

headSet

public SortedSet<Integer> headSet(Integer toElement)
Specified by:
headSet in interface SortedSet<Integer>

last

public Integer last()
Specified by:
last in interface SortedSet<Integer>

subSet

public SortedSet<Integer> subSet(Integer fromElement,
                                 Integer toElement)
Specified by:
subSet in interface SortedSet<Integer>

tailSet

public SortedSet<Integer> tailSet(Integer fromElement)
Specified by:
tailSet in interface SortedSet<Integer>


Copyright © 2010. All Rights Reserved.