public final class NCList extends NCType implements java.lang.Iterable<NCType>
TYPE_BOOLEAN, TYPE_BYTEBUFFER, TYPE_DATE, TYPE_DOUBLE, TYPE_INTEGER, TYPE_LIST, TYPE_LONG, TYPE_MAP, TYPE_NULL, TYPE_STRING
Constructor and Description |
---|
NCList()
Constructs a new
NCList object. |
NCList(int initialCapacity)
Constructs a new
NCList object. |
Modifier and Type | Method and Description |
---|---|
NCList |
add(boolean value)
Appends a value to the NCList.
|
NCList |
add(byte[] value)
Appends a value to the NCList.
|
NCList |
add(java.nio.ByteBuffer value)
Appends a value to the NCList.
|
NCList |
add(java.util.Date value)
Appends a value to the NCList.
|
NCList |
add(double value)
Appends a value to the NCList.
|
NCList |
add(INCExternalizable value)
Appends a value to the NCList.
|
NCList |
add(int value)
Appends a value to the NCList.
|
NCList |
add(long value)
Appends a value to the NCList.
|
NCList |
add(NCType value)
Appends the specified NCType to the end of this NCList.
|
NCList |
add(java.lang.String value)
Appends a value to the NCList.
|
NCList |
clear()
Removes all Values from this NCList.
|
boolean |
contains(NCType val)
Returns true if this Array contains the specified NCType.
|
boolean |
equals(java.lang.Object other)
Force subclasses to implement.
|
NCType[] |
get()
Returns the elements of this NCList instance as
NCType[] . |
NCType |
get(int index)
Returns the
NCType located at the specified index inside
this NCList. |
boolean |
getBool(int index)
Returns the boolean value at the specified index.
|
byte[] |
getByteArray(int index)
Returns the byte[] value at the specified index.
|
java.nio.ByteBuffer |
getBytes(int index)
Returns the ByteBuffer value at the specified index.
|
java.util.Date |
getDate(int index)
Returns the date value at the specified index.
|
double |
getDouble(int index)
Returns the double value at the specified index.
|
int |
getInt(int index)
Returns the int value at the specified index.
|
NCList |
getList(int index)
Returns the NCList value at the specified index.
|
long |
getLong(int index)
Returns the long value at the specified index.
|
NCMap |
getMap(int index)
Returns the NCMap value at the specified index.
|
java.lang.String |
getString(int index)
Returns the String value at the specified index.
|
int |
getType()
Returns the type of this
NCType object. |
int |
hashCode()
Force subclasses to implement.
|
boolean |
isEmtpy()
Returns true if this
NCList object contains no items. |
java.util.Iterator<NCType> |
iterator() |
NCType |
remove(int index)
Removes the NCType at the specified position in this NCList and returns
it.
|
NCList |
set(NCType value,
int index)
Replaces the
NCType object at the specified index inside the
NCList. |
int |
size()
Returns the size of this
NCList object. |
java.lang.String |
toString()
Force subclasses to implement.
|
externalize
public NCList()
NCList
object.public NCList(int initialCapacity)
NCList
object.initialCapacity
- - initial capacity of the created Array objectpublic int size()
NCList
object.NCList
objectpublic boolean isEmtpy()
NCList
object contains no items.NCList
object contains no itemspublic NCType get(int index)
NCType
located at the specified index inside
this NCList.index
- the index of the NCType to returnNCType
located at the specified index inside
this NCListpublic NCType[] get()
NCType[]
.NCType[]
.public boolean contains(NCType val)
val
- - NCType to look forpublic NCList add(NCType value)
value
- - NCType to be addedpublic NCList add(INCExternalizable value)
value
- the valuepublic NCList add(java.lang.String value)
value
- the valuepublic NCList add(boolean value)
value
- the valuepublic NCList add(int value)
value
- the valuepublic NCList add(long value)
value
- the valuepublic NCList add(double value)
value
- the valuepublic NCList add(java.util.Date value)
value
- the valuepublic NCList add(byte[] value)
value
- the valuepublic NCList add(java.nio.ByteBuffer value)
value
- the valuepublic java.lang.String getString(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic boolean getBool(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic double getDouble(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic int getInt(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic long getLong(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic java.util.Date getDate(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic byte[] getByteArray(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic java.nio.ByteBuffer getBytes(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic NCList getList(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic NCMap getMap(int index) throws BadMessageException
index
- the indexBadMessageException
- if the requested value is of a bad typepublic NCList set(NCType value, int index)
NCType
object at the specified index inside the
NCList.index
- of element to replace.value
- - NCType to be stored at the specified position.public NCList clear()
public NCType remove(int index)
index
- the index of the element to removedpublic java.util.Iterator<NCType> iterator()
iterator
in interface java.lang.Iterable<NCType>
Iterable.iterator()
public int getType()
NCType
NCType
object.public int hashCode()
NCType
public boolean equals(java.lang.Object other)
NCType
Copyright © 2010 - 2020 Adobe. All Rights Reserved