|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
com.ibm.are.common.GenericList
public class GenericList
The GenericList
class represents a list of items. The items in the list can be
of any type, and the list contents can be heterogeneous.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright for class bytecode |
static java.lang.String |
DEFAULT_LIST_END_MARKER
The default end marker for a string representation of the list contents |
static java.lang.String |
DEFAULT_LIST_ITEM_END_MARKER
The default end marker for an item within the string representation of the list contents |
static java.lang.String |
DEFAULT_LIST_ITEM_START_MARKER
The default start marker for an item within the string representation of the list contents |
static java.lang.String |
DEFAULT_LIST_START_MARKER
The default start marker for a string representation of the list contents |
protected java.lang.String |
listEndMarker
End marker for a string representation of the list contents |
protected java.lang.String |
listItemEndMarker
End marker for an item within the string representation of the list contents |
protected java.lang.String |
listItemStartMarker
Start marker for an item within the string representation of the list contents |
protected java.lang.String |
listStartMarker
Start marker for a string representation of the list contents |
protected int |
maxInputListItems
Maximum number of items the list can contain. |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
GenericList()
Constructs a an empty GenericList object |
|
GenericList(java.util.Collection c)
Constructs a GenericList object and populates it with
the contents of the specified collection. |
|
GenericList(java.lang.Object[] objList)
Constructs a GenericList object and populates it with
the contents of the specified list. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the list with the specified object. |
java.lang.String |
getListEndMarker()
Retrieves the end marker for the string representation of this list |
java.lang.String |
getListItemEndMarker()
Retrieves the end marker for an item within the string representation of this list |
java.lang.String |
getListItemStartMarker()
Retrieves the start marker for an item within the string representation of this list |
java.lang.String |
getListStartMarker()
Retrieves the start marker for the string representation of this list |
protected void |
initFields()
Initializes the internal object fields. |
void |
setListEndMarker(java.lang.String listEndMarker)
Sets the end marker for the string representation of this list |
void |
setListItemEndMarker(java.lang.String listItemEndMarker)
Sets the end marker for an item within the string representation of this list |
void |
setListItemStartMarker(java.lang.String listItemStartMarker)
Sets the start marker for an item within the string representation of this list |
void |
setListStartMarker(java.lang.String listStartMarker)
Sets the start marker for the string representation of this list |
java.lang.String |
toString()
Returns a string representation of the list contents |
Methods inherited from class java.util.LinkedList |
---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_LIST_START_MARKER
public static final java.lang.String DEFAULT_LIST_END_MARKER
public static final java.lang.String DEFAULT_LIST_ITEM_START_MARKER
public static final java.lang.String DEFAULT_LIST_ITEM_END_MARKER
protected java.lang.String listStartMarker
protected java.lang.String listEndMarker
protected java.lang.String listItemStartMarker
protected java.lang.String listItemEndMarker
protected int maxInputListItems
Constructor Detail |
---|
public GenericList()
GenericList
object
public GenericList(java.util.Collection c)
GenericList
object and populates it with
the contents of the specified collection.
c
- The collection to populate the list withpublic GenericList(java.lang.Object[] objList)
GenericList
object and populates it with
the contents of the specified list.
objList
- The list to populate the list withMethod Detail |
---|
public java.lang.String getListEndMarker()
public void setListEndMarker(java.lang.String listEndMarker)
listEndMarker
- The end markerpublic java.lang.String getListItemEndMarker()
public void setListItemEndMarker(java.lang.String listItemEndMarker)
listItemEndMarker
- The item end markerpublic java.lang.String getListItemStartMarker()
public void setListItemStartMarker(java.lang.String listItemStartMarker)
listItemStartMarker
- The item start markerpublic java.lang.String getListStartMarker()
public void setListStartMarker(java.lang.String listStartMarker)
listStartMarker
- The start markerpublic boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList
true
if the two lists are equal, false
if they are notpublic java.lang.String toString()
toString
in class java.util.AbstractCollection
protected void initFields()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |