public class DiaryListValue extends ArrayList<DiaryItem> implements Cloneable, Serializable
DiaryListValue
class is used to set or retrieve the values of diary fields. The DiaryList
class is a collection of DiaryItem
objects. It contains a string representation of all the DiaryItem
objects in encoded form. The list of DiaryItem
objects can be retrieved using the
decode
method.Modifier and Type | Field and Description |
---|---|
static String |
AR_DEFN_DIARY_COMMA |
static String |
AR_DEFN_DIARY_SEP |
Constructor and Description |
---|
DiaryListValue() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
static DiaryListValue |
decode(String encoded)
Takes the formatted string returned for all diary fields and decodes it into an array of diary entries.
|
String |
encode()
Encodes the current
ARDiaryList into an encoded diary string. |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
String |
getAppendedText()
return the appended diary string.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setAppendedText(String appendedText)
Append the given string to the diaryListValue object, and the string will be added
to
DiaryItem late on when this diaryListValue object is saved into
the server |
String |
toString()
Returns a string description of the object.
|
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll
containsAll
parallelStream, stream
public static final String AR_DEFN_DIARY_SEP
public static final String AR_DEFN_DIARY_COMMA
public boolean equals(Object obj)
equals
in interface Collection<DiaryItem>
equals
in interface List<DiaryItem>
equals
in class AbstractList<DiaryItem>
obj
- the object that we are comparing topublic static DiaryListValue decode(String encoded) throws ARException
NullPointerException
- if invalid ARServerUser
objectARException
- if diary information is not decodedpublic String encode()
ARDiaryList
into an encoded diary string.public Object clone()
public String getAppendedText()
public void setAppendedText(String appendedText)
DiaryItem
late on when this diaryListValue object is saved into
the serverappendedText
- the string to be added to the diaryListValue object.public String toString()
toString
in class AbstractCollection<DiaryItem>
public int hashCode()
hashCode
in interface Collection<DiaryItem>
hashCode
in interface List<DiaryItem>
hashCode
in class AbstractList<DiaryItem>
? Copyright 2013 BMC Software, Inc.