org.dasein.util
Class JitCollection<T>

java.lang.Object
  extended by org.dasein.util.JitCollection<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>

public class JitCollection<T>
extends Object
implements Collection<T>


Constructor Summary
JitCollection(Jiterator<T> src)
           
JitCollection(Jiterator<T> src, String nom)
           
 
Method Summary
 void add(int index, T element)
           
 boolean add(T item)
           
 boolean addAll(Collection<? extends T> c)
           
 boolean addAll(int index, Collection<? extends T> c)
           
 void clear()
           
 boolean contains(Object item)
           
 boolean containsAll(Collection<?> c)
           
 T get(int index)
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 int lastIndexOf(Object o)
           
 T remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

JitCollection

public JitCollection(Jiterator<T> src)

JitCollection

public JitCollection(Jiterator<T> src,
                     String nom)
Method Detail

add

public boolean add(T item)
Specified by:
add in interface Collection<T>

add

public void add(int index,
                T element)

addAll

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

addAll

public boolean addAll(int index,
                      Collection<? extends T> c)

clear

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

contains

public boolean contains(Object item)
Specified by:
contains in interface Collection<T>

containsAll

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

get

public T get(int index)

indexOf

public int indexOf(Object o)

isEmpty

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

iterator

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

lastIndexOf

public int lastIndexOf(Object o)

remove

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

remove

public T remove(int index)

removeAll

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

retainAll

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

size

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

toArray

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

toArray

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.