|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmathcomp.la.CollectionIndex
public class CollectionIndex
An Index using a java.util.Collection.
This may be e.g. a java.util.Set or
a java.util.List.
CollectionIndex fiddles about the issue
with comparations.
| Constructor Summary | |
|---|---|
CollectionIndex()
|
|
CollectionIndex(java.util.Collection coll)
|
|
| Method Summary | |
|---|---|
Matrix |
createMatrix()
Creates a new MapMatrix based on this index. |
Vector |
createVector()
Creates a new MapVector based on this index. |
java.util.Collection |
getColl()
|
java.util.Iterator |
iterator()
This returns a enumeration of the index. |
void |
setColl(java.util.Collection coll)
|
int |
size()
This returns the cardinality of the index. |
java.util.List |
toList()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionIndex()
public CollectionIndex(java.util.Collection coll)
| Method Detail |
|---|
public int size()
Index
size in interface Indexpublic java.util.Iterator iterator()
Index
iterator in interface Indexpublic java.util.Collection getColl()
public void setColl(java.util.Collection coll)
list - public java.util.List toList()
toList in interface Indexjava.util.List containing the index.public java.lang.String toString()
toString in class java.lang.Objectpublic Vector createVector()
MapVector based on this index.
If the collection is sorted then the map will be
a TreeMap.
createVector in interface IndexVector indexed by this IndexIndex.createVector()public Matrix createMatrix()
MapMatrix based on this index.
If the collection is sorted then the map will be
a TreeMap.
createMatrix in interface IndexMatrix indexed by this IndexIndex.createMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||