|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.StringList
public class StringList
Represents a list of strings.
Constructor Summary | |
---|---|
|
StringList()
Initializes a new instance of the "StringList" class. |
|
StringList(java.lang.Iterable<java.lang.String> strings)
Initializes a new instance of the |
protected |
StringList(java.lang.String itemXmlElementName)
Initializes a new instance of the "StringList" class. |
Method Summary | |
---|---|
void |
add(java.lang.String s)
Adds a string to the list. |
void |
addRange(java.lang.Iterable<java.lang.String> strings)
Adds multiple strings to the list. |
void |
clearList()
Clears the list. |
boolean |
contains(java.lang.String s)
Determines whether the list contains a specific string. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.util.Iterator<java.lang.String> |
getIterator()
Gets an iterator that iterates through the elements of the collection. |
int |
getSize()
Gets the number of strings in the list. |
java.lang.String |
getString(int index)
Gets the string at the specified index. |
int |
hashCode()
Serves as a hash function for a particular type. |
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over a set of elements of type T. |
boolean |
remove(java.lang.String s)
Removes a string from the list. |
void |
removeAt(int index)
Removes the string at the specified position from the list. |
void |
setString(int index,
java.lang.Object object)
Sets the string at the specified index. |
java.lang.String |
toString()
Returns a string representation of the object. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Tries to read element from XML. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes elements to XML. |
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringList()
public StringList(java.lang.Iterable<java.lang.String> strings)
strings
- The strings.protected StringList(java.lang.String itemXmlElementName)
itemXmlElementName
- Name of the item XML element.Method Detail |
---|
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws javax.xml.stream.XMLStreamException, ServiceXmlDeserializationException
tryReadElementFromXml
in class ComplexProperty
reader
- accepts EwsServiceXmlReader
javax.xml.stream.XMLStreamException
- the xML stream exception
ServiceXmlDeserializationException
- the service xml deserialization exceptionprotected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, javax.xml.stream.XMLStreamException
writeElementsToXml
in class ComplexProperty
writer
- accepts EwsServiceXmlWriter
ServiceXmlSerializationException
- the service xml serialization exception
javax.xml.stream.XMLStreamException
- the xML stream exceptionpublic void add(java.lang.String s)
s
- The string to add.public void addRange(java.lang.Iterable<java.lang.String> strings)
strings
- The strings to add.public boolean contains(java.lang.String s)
s
- The string to check the presence of.
public boolean remove(java.lang.String s)
s
- The string to remove.
public void removeAt(int index)
index
- The index of the string to remove.public void clearList()
public java.lang.String toString()
toString
method returns a string that "textually represents"
this object. The result should be a concise but informative
representation that is easy for a person to read. It is recommended that
all subclasses override this method.
The toString
method for class Object
returns a
string consisting of the name of the class of which the object is an
instance, the at-sign character `@
', and the unsigned
hexadecimal representation of the hash code of the object. In other
words, this method returns a string equal to the value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class java.lang.Object
public int getSize()
public java.lang.String getString(int index)
index
- The index of the string to get or set.
public void setString(int index, java.lang.Object object)
index
- The indexobject
- The object.public java.util.Iterator<java.lang.String> getIterator()
public boolean equals(java.lang.Object obj)
The equals
method implements an equivalence relation on
non-null object references:
x
, x.equals(x)
should return true
.
x
and y
, x.equals(y)
should return
true
if and only if y.equals(x)
returns
true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y) consistently return true
or
consistently return false
, provided no information used in
equals
comparisons on the objects is modified.
x
,
x.equals(null)
should return false
.
The equals method for class Object
implements the
most discriminating possible equivalence relation on objects; that is,
for any non-null reference values x
and y
, this
method returns true
if and only if x
and
y
refer to the same object (x == y
has the
value true
).
Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
equals
in class java.lang.Object
obj
- the reference object with which to compare.
hashCode()
,
Hashtable
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |