galaxy.lang
Class GVector
java.lang.Object
|
+--galaxy.lang.GalaxyObject
|
+--galaxy.lang.GVector
- All Implemented Interfaces:
- java.lang.Cloneable
- public class GVector
- extends GalaxyObject
A Galaxy Vector, or GVector for short. The name starts with G to
distinguish it from java.util.Vector. It is distinguished from a Vector in
that there are utilities to filter a GVector. It also knows how to format
itself for pretty printing.
This data type corresponds to tlist in the C version of Galaxy.
A tlist is often used in a result set A result set is a frame
which contains ":nfound", and ":values".
- See Also:
Vector
,
GalaxyObject
Fields inherited from class galaxy.lang.GalaxyObject |
GAL_BINARY, GAL_CLAUSE_FRAME, GAL_FLOAT, GAL_FLOAT_32, GAL_FLOAT_64, GAL_FRAME, GAL_FREE, GAL_INT, GAL_INT_16, GAL_INT_32, GAL_INT_64, GAL_KEYWORD, GAL_LIST, GAL_PRED_FRAME, GAL_PROXY, GAL_PTR, GAL_STRING, GAL_SYMBOL, GAL_TAG, GAL_TOKEN, GAL_TOPIC_FRAME, nameToType, type, typeToName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GVector
public GVector()
GVector
public GVector(int i)
GVector
public GVector(int i,
int j)
toEncodedString
public java.lang.String toEncodedString()
toFormattedString
public java.lang.String toFormattedString(int ident)
toFormattedString
public java.lang.String toFormattedString()
addElement
public void addElement(java.lang.Object obj)
- Vector methods implementation
removeElement
public boolean removeElement(java.lang.Object obj)
removeAllElements
public void removeAllElements()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
copyInto
public void copyInto(java.lang.Object[] anArray)
trimToSize
public void trimToSize()
ensureCapacity
public void ensureCapacity(int minCapacity)
setSize
public void setSize(int newSize)
capacity
public int capacity()
size
public int size()
isEmpty
public boolean isEmpty()
elements
public java.util.Enumeration elements()
contains
public boolean contains(java.lang.Object elem)
indexOf
public int indexOf(java.lang.Object elem)
indexOf
public int indexOf(java.lang.Object elem,
int index)
lastIndexOf
public int lastIndexOf(java.lang.Object elem)
lastIndexOf
public int lastIndexOf(java.lang.Object elem,
int index)
elementAt
public java.lang.Object elementAt(int index)
firstElement
public java.lang.Object firstElement()
lastElement
public java.lang.Object lastElement()
setElementAt
public void setElementAt(java.lang.Object obj,
int index)
removeElementAt
public void removeElementAt(int index)
insertElementAt
public void insertElementAt(java.lang.Object obj,
int index)