| |
|
| java.lang.Object xdoclet.modules.ojb.CommaListIterator
Constructor Summary | |
public | CommaListIterator(String list) Creates a new string iterator for the given comma-separated list. |
Method Summary | |
public boolean | contains(String element) Determines whether one of the remaining elements is the given element. | public boolean | equals(Object obj) Compares this iterator with the other given one. | public String | getNext() Returns the next string from the list. | public boolean | hasNext() | public Object | next() | public void | remove() | public static boolean | sameLists(String list1, String list2) Compares the two comma-separated lists. |
CommaListIterator | public CommaListIterator(String list)(Code) | | Creates a new string iterator for the given comma-separated list.
Parameters: list - The list |
contains | public boolean contains(String element)(Code) | | Determines whether one of the remaining elements is the given element. If it is found
then the iterator is moved after the element, otherwise the iterator is after the end
of the list.
Parameters: element - The element to search for true if the element has been found |
equals | public boolean equals(Object obj)(Code) | | Compares this iterator with the other given one. Note that this consumes
the iterators, so you should not use them afterwards.
Parameters: obj - The other object If the other object is a comma list iterator and it delivers the same valuesas this iterator See Also: java.lang.Object.equals(java.lang.Object) |
getNext | public String getNext()(Code) | | Returns the next string from the list.
The next string |
hasNext | public boolean hasNext()(Code) | | |
remove | public void remove()(Code) | | |
sameLists | public static boolean sameLists(String list1, String list2)(Code) | | Compares the two comma-separated lists.
Parameters: list1 - The first list Parameters: list2 - The second list true if the lists are equal |
|
|
|