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:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public class SemanticList<T>
extends java.util.AbstractList<T>
implements java.util.RandomAccess

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

Version:
$Revision: 168 $ Last update: $Date: 2009-07-17 18:18:45 +0200 (ven., 17 juil. 2009) $ by : $Author: echatellier $
Author:
poussin

Field Summary
protected  java.util.ArrayList<T> datas
           
protected  java.util.Map<java.lang.Object,java.lang.Integer> index
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SemanticList(java.util.Collection<T> c)
           
 
Method Summary
 T get(int index)
           
protected  java.util.Map<java.lang.Object,java.lang.Integer> getIndex()
           
 int indexOf(java.lang.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 java.util.ArrayList<T> datas

index

protected java.util.Map<java.lang.Object,java.lang.Integer> index
Constructor Detail

SemanticList

public SemanticList(java.util.Collection<T> c)
Method Detail

get

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

size

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

indexOf

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

getIndex

protected java.util.Map<java.lang.Object,java.lang.Integer> getIndex()


Copyright © 2004-2009 CodeLutin. All Rights Reserved.