org.nuiton.math.matrix
Class SemanticList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by org.nuiton.math.matrix.SemanticList<T>
Type Parameters:
T - elements type
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, RandomAccess

public class SemanticList<T>
extends AbstractList<T>
implements RandomAccess

SemanticList. Created: 6 sept. 06 17:18:23

Version:
$Revision: 187 $ Last update: $Date: 2009-10-16 19:17:29 +0200 (ven., 16 oct. 2009) $ by : $Author: tchemit $
Author:
poussin

Field Summary
protected  ArrayList<T> datas
           
protected  Map<Object,Integer> index
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SemanticList(Collection<T> c)
           
 
Method Summary
 T get(int index)
           
protected  Map<Object,Integer> getIndex()
           
 int indexOf(Object o)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

datas

protected ArrayList<T> datas

index

protected Map<Object,Integer> index
Constructor Detail

SemanticList

public SemanticList(Collection<T> c)
Method Detail

get

public T get(int index)
Specified by:
get in interface List<T>
Specified by:
get in class AbstractList<T>

size

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

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<T>
Overrides:
indexOf in class AbstractList<T>

getIndex

protected Map<Object,Integer> getIndex()


Copyright © 2004-2010 CodeLutin. All Rights Reserved.