|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelix.graph.model.impl.RVertexList
public class RVertexList
a memory implementation of RegistryValue for lists of Vertices
Constructor Summary | |
---|---|
RVertexList()
|
|
RVertexList(Collection<Vertex> c)
|
|
RVertexList(int size)
|
|
RVertexList(Vertex v)
|
Method Summary | |
---|---|
void |
addVertex(Vertex v)
|
void |
clear()
|
boolean |
equals(Object o)
|
Vertex |
getVertex(int index)
|
static RVertexList |
getVertexList(Registry r,
String key)
Lookup the RVertexList associated to key in registry and create an empty RVertexList if it does not exist. |
int |
hashCode()
|
Iterator<Vertex> |
iterator()
|
RegistryValue |
klone()
Potentially clone this instance. |
Vertex |
lastVertex()
|
Vertex |
removeVertex(int index)
|
String |
serialize()
get a String representation of this instance. |
Vertex |
setVertex(int index,
Vertex v)
|
int |
size()
|
boolean |
toBoolean()
|
float |
toFloat()
|
int |
toInt()
|
String |
toString()
a human readable version of toString() |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RVertexList(int size)
public RVertexList()
public RVertexList(Vertex v)
public RVertexList(Collection<Vertex> c)
Method Detail |
---|
public RegistryValue klone()
RegistryValue
klone
in interface RegistryValue
public String serialize()
RegistryValue
serialize
in interface RegistryValue
public boolean toBoolean() throws IllegalValueException
toBoolean
in interface RegistryValue
IllegalValueException
public float toFloat() throws IllegalValueException
toFloat
in interface RegistryValue
IllegalValueException
public int toInt() throws IllegalValueException
toInt
in interface RegistryValue
IllegalValueException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Iterator<Vertex> iterator()
iterator
in interface Iterable<Vertex>
public void addVertex(Vertex v)
public Vertex getVertex(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Vertex lastVertex() throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Vertex setVertex(int index, Vertex v) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Vertex removeVertex(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void clear()
public int size()
public String toString()
toString
in interface RegistryValue
toString
in class Object
public static final RVertexList getVertexList(Registry r, String key)
if (r.has(key))
return (RVertexList) r.get(key);
else
return (RVertexList) r.set(key, new RVertexList());
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |