public class WZDataList extends WZData implements Iterable, Serializable
WZData
elementsConstructor and Description |
---|
WZDataList()
Constructs a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
add(boolean value)
Add a boolean value to the end of the list
|
void |
add(Date value)
Add a
Date to the end of the list |
void |
add(double value)
Add a double value to the end of the list
|
void |
add(float value)
Add a float value to the end of the list
|
void |
add(int value)
Add an integer value to the end of the list
|
void |
add(int index,
boolean value)
Add a boolean value to the list at the specfied index
|
void |
add(int index,
Date value)
Add a
Date to the list at the specfied index |
void |
add(int index,
double value)
Add a double value to the list at the specfied index
|
void |
add(int index,
float value)
Add a float value to the list at the specfied index
|
void |
add(int index,
int value)
Add an integer value to the list at the specfied index
|
void |
add(int index,
long value)
Add a long value to the list at the specfied index
|
void |
add(int index,
short value)
Add a short value to the list at the specfied index
|
void |
add(int index,
String value)
Add a string value to the list at the specfied index
|
void |
add(int index,
WZData dataItem)
Adds a new
WZData element to the list at the specified index |
void |
add(long value)
Add a long value to the end of the list
|
void |
add(short value)
Add a short value to the end of the list
|
void |
add(String value)
Add a string value to the end of the list
|
boolean |
add(WZData dataItem)
Adds a new
WZData element to the end of the list |
void |
clear()
Remove all elements from the list
|
boolean |
contains(WZData dataItem)
Indicates if the collection contains the specified instance
|
WZData |
get(int index)
Returns the list element at the specified index
|
int |
indexOf(WZData dataItem)
Returns the index of the specified element
|
boolean |
isEmpty() |
Iterator |
iterator()
Returns an iterator over this list
|
int |
lastIndexOf(WZData dataItem)
Returns the last index of the specified instance
|
WZData |
remove(int index)
Remove the element at the specified index from the list
|
boolean |
remove(WZData dataItem)
Remove the specified element from the list
|
int |
size() |
String |
toString()
Returns a readable version of the instance
|
String |
toString(boolean prettyPrint,
int indentLevel)
Returns a readable version of the instance in the format [value, value, ...]
|
getDataType, isPrimitive
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public int size()
public void add(int index, WZData dataItem)
WZData
element to the list at the specified indexindex
- the index at which to add the elementdataItem
- the object instance to addpublic void add(int index, int value)
index
- The element indexvalue
- The element valuepublic void add(int index, short value)
index
- The element indexvalue
- The element valuepublic void add(int index, long value)
index
- The element indexvalue
- The element valuepublic void add(int index, float value)
index
- The element indexvalue
- The element valuepublic void add(int index, double value)
index
- The element indexvalue
- The element valuepublic void add(int index, String value)
index
- The element indexvalue
- The element valuepublic void add(int index, boolean value)
index
- The element indexvalue
- The element valuepublic void add(int index, Date value)
Date
to the list at the specfied indexindex
- The element indexvalue
- The element valuepublic boolean add(WZData dataItem)
WZData
element to the end of the listdataItem
- the object instance to addpublic void add(int value)
value
- The element valuepublic void add(short value)
value
- The element valuepublic void add(long value)
value
- The element valuepublic void add(float value)
value
- The element valuepublic void add(double value)
value
- The element valuepublic void add(String value)
value
- The element valuepublic void add(boolean value)
value
- The element valuepublic void add(Date value)
Date
to the end of the listvalue
- The element valuepublic WZData get(int index)
index
- the element indexpublic boolean contains(WZData dataItem)
dataItem
- the object instance to querypublic int indexOf(WZData dataItem)
dataItem
- the element to search forpublic int lastIndexOf(WZData dataItem)
dataItem
- the instance to search forpublic boolean isEmpty()
public Iterator iterator()
public WZData remove(int index)
index
- the index for the element to be removedpublic boolean remove(WZData dataItem)
dataItem
- the index for the element to be removedpublic void clear()
public String toString()
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal