|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector<JSON._Value> org.opengts.util.JSON._Array
public static class JSON._Array
JSON Array
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
JSON._Array()
Constructor |
|
JSON._Array(boolean... array)
Constructor An Array of Booleans |
|
JSON._Array(double... array)
Constructor An Array of Doubles |
|
JSON._Array(JSON._Array... array)
Constructor An Array of other Arrays |
|
JSON._Array(JSON._Object... array)
Constructor An Array of Objects |
|
JSON._Array(JSON._Value... array)
Constructor An Array of other Values |
|
JSON._Array(long... array)
Constructor An Array of Longs |
|
JSON._Array(java.lang.String... array)
Constructor An Array of Strings |
Method Summary | |
---|---|
boolean |
add(JSON._Value value)
Add a JSON._Value to this JSON._Array |
boolean |
addValue(boolean value)
Add a Boolean to this JSON._Array |
boolean |
addValue(double value)
Add a Double to this JSON._Array |
boolean |
addValue(JSON._Array value)
Add a JSON._Array to this JSON._Array |
boolean |
addValue(JSON._Object value)
Add a JSON._Object to this JSON._Array |
boolean |
addValue(JSON._Value value)
Add a JSON._Value to this JSON._Array |
boolean |
addValue(long value)
Add a Long to this JSON._Array |
boolean |
addValue(java.lang.String value)
Add a String to this JSON._Array |
JSON._Array |
getArrayValueAt(int ndx,
JSON._Array dft)
Returns the JSON._Array value at the specified index |
boolean |
getBooleanValueAt(int ndx,
boolean dft)
Returns the Boolean value at the specified index |
double[] |
getDoubleArray()
Returns a double array of values contained in this JSON Array |
double |
getDoubleValueAt(int ndx,
double dft)
Returns the Double value at the specified index |
int[] |
getIntArray()
Returns an int array of values contained in this JSON Array |
int |
getIntValueAt(int ndx,
int dft)
Returns the Integer value at the specified index |
long[] |
getLongArray()
Returns a long array of values contained in this JSON Array |
long |
getLongValueAt(int ndx,
long dft)
Returns the Long value at the specified index |
JSON._Object |
getObjectValueAt(int ndx,
JSON._Object dft)
Returns the JSON._Object value at the specified index |
java.lang.String[] |
getStringArray()
Returns a String array of values contained in this JSON Array |
java.lang.String |
getStringValueAt(int ndx,
java.lang.String dft)
Returns the String value at the specified index |
JSON._Value |
getValueAt(int ndx)
Returns the JSON._Value at the specified index |
boolean |
isEmpty()
Returns true if this array is empty |
JSON._Array |
setFormatIndent(boolean indent)
Set format indent state |
int |
size()
Gets the number of items in this array |
java.lang.String |
toString()
Returns a String representation of this instance |
java.lang.StringBuffer |
toStringBuffer(int prefix,
java.lang.StringBuffer sb)
Write a String representation of this instance to the StringBuffer |
Methods inherited from class java.util.Vector |
---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public JSON._Array()
public JSON._Array(JSON._Value... array)
public JSON._Array(java.lang.String... array)
public JSON._Array(long... array)
public JSON._Array(double... array)
public JSON._Array(boolean... array)
public JSON._Array(JSON._Object... array)
public JSON._Array(JSON._Array... array)
Method Detail |
---|
public boolean add(JSON._Value value)
add
in interface java.util.Collection<JSON._Value>
add
in interface java.util.List<JSON._Value>
add
in class java.util.Vector<JSON._Value>
public boolean addValue(JSON._Value value)
public boolean addValue(java.lang.String value)
public boolean addValue(long value)
public boolean addValue(double value)
public boolean addValue(boolean value)
public boolean addValue(JSON._Object value)
public boolean addValue(JSON._Array value)
public JSON._Value getValueAt(int ndx)
public JSON._Object getObjectValueAt(int ndx, JSON._Object dft)
public JSON._Array getArrayValueAt(int ndx, JSON._Array dft)
public java.lang.String getStringValueAt(int ndx, java.lang.String dft)
public int getIntValueAt(int ndx, int dft)
public long getLongValueAt(int ndx, long dft)
public double getDoubleValueAt(int ndx, double dft)
public boolean getBooleanValueAt(int ndx, boolean dft)
public java.lang.String[] getStringArray()
public int[] getIntArray()
public long[] getLongArray()
public double[] getDoubleArray()
public int size()
size
in interface java.util.Collection<JSON._Value>
size
in interface java.util.List<JSON._Value>
size
in class java.util.Vector<JSON._Value>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<JSON._Value>
isEmpty
in interface java.util.List<JSON._Value>
isEmpty
in class java.util.Vector<JSON._Value>
public JSON._Array setFormatIndent(boolean indent)
public java.lang.StringBuffer toStringBuffer(int prefix, java.lang.StringBuffer sb)
public java.lang.String toString()
toString
in class java.util.Vector<JSON._Value>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |