public class ConfList extends ConfValue implements Cloneable, Serializable, Comparable<ConfList>
Modifier and Type | Class and Description |
---|---|
static class |
ConfList.WhereTo |
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG
Constructor and Description |
---|
ConfList() |
ConfList(ConfEObject o) |
ConfList(ConfObject[] l) |
Modifier and Type | Method and Description |
---|---|
void |
addElem(ConfObject n)
Add an element in the end of this ConfList unless it already exists
|
int |
compareTo(ConfList o) |
void |
delete(ConfObject n)
Delete arbitrary object from the ConfList
|
ConfObject[] |
elements()
Return a copy as array of this
|
ConfEObject |
encode()
encode value.
|
boolean |
equals(Object o)
Determine if two ConfValue are equal.
|
ConfObject |
get(int index) |
int |
hashCode() |
boolean |
isMember(ConfObject o) |
int |
length() |
void |
move(ConfObject n,
ConfList.WhereTo where,
ConfObject to)
Move a list element to a new position in the list.
|
ConfObject |
set(int index,
ConfObject val) |
String |
toString() |
getStringByValue, getStringByValue, getValueByString, getValueByString
clone, decode
public ConfList(ConfObject[] l)
public ConfList()
public ConfList(ConfEObject o) throws ConfException
ConfException
public ConfObject set(int index, ConfObject val)
public ConfObject get(int index)
public ConfObject[] elements()
public void addElem(ConfObject n)
n
- object to addpublic void delete(ConfObject n)
n
- object to removepublic void move(ConfObject n, ConfList.WhereTo where, ConfObject to) throws ConfException
n
- object to move according to WhereTowhere
- How the move should be performed. Move object
WhereTo.FIRST or WhereTo.LAST or move object
WhereTo.BEFORE or WhereTo.AFTER the element to.to
- If the value of whereTo is WhereTo.FIRST or WhereTo.LAST
this argument ignoredConfException
public boolean isMember(ConfObject o)
public int length()
public boolean equals(Object o)
ConfValue
public String toString()
public ConfEObject encode()
ConfValue
public int compareTo(ConfList o)
compareTo
in interface Comparable<ConfList>