Package jp.vmi.selenium.selenese.result
Class CommandResultList
- java.lang.Object
-
- jp.vmi.selenium.selenese.result.CommandResultList
-
- All Implemented Interfaces:
Iterable<CommandResult>,Collection<CommandResult>,List<CommandResult>
public class CommandResultList extends Object implements List<CommandResult>
List of command result.
-
-
Constructor Summary
Constructors Constructor Description CommandResultList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, CommandResult element)booleanadd(CommandResult cresult)booleanaddAll(int index, Collection<? extends CommandResult> c)booleanaddAll(Collection<? extends CommandResult> cresults)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)CommandResultget(int index)longgetEndTime()Get end time of last command.ResultgetResult()Get latest result.List<CommandResult>getResults(ICommand command)Get results of the command.intindexOf(Object o)booleanisEmpty()Iterator<CommandResult>iterator()intlastIndexOf(Object o)ListIterator<CommandResult>listIterator()ListIterator<CommandResult>listIterator(int index)CommandResultremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)CommandResultset(int index, CommandResult element)voidsetEndTime(long endTime)Set end time.ResultsetResult(Result result)Set result.intsize()List<CommandResult>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<CommandResult>- Specified by:
sizein interfaceList<CommandResult>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<CommandResult>- Specified by:
isEmptyin interfaceList<CommandResult>
-
add
public boolean add(CommandResult cresult)
- Specified by:
addin interfaceCollection<CommandResult>- Specified by:
addin interfaceList<CommandResult>
-
addAll
public boolean addAll(Collection<? extends CommandResult> cresults)
- Specified by:
addAllin interfaceCollection<CommandResult>- Specified by:
addAllin interfaceList<CommandResult>
-
get
public CommandResult get(int index)
- Specified by:
getin interfaceList<CommandResult>
-
setResult
public Result setResult(Result result)
Set result.- Parameters:
result- result.- Returns:
- same as result.
-
getResult
public Result getResult()
Get latest result.- Returns:
- latest result.
-
iterator
public Iterator<CommandResult> iterator()
- Specified by:
iteratorin interfaceCollection<CommandResult>- Specified by:
iteratorin interfaceIterable<CommandResult>- Specified by:
iteratorin interfaceList<CommandResult>
-
listIterator
public ListIterator<CommandResult> listIterator()
- Specified by:
listIteratorin interfaceList<CommandResult>
-
listIterator
public ListIterator<CommandResult> listIterator(int index)
- Specified by:
listIteratorin interfaceList<CommandResult>
-
subList
public List<CommandResult> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<CommandResult>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<CommandResult>- Specified by:
toArrayin interfaceList<CommandResult>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<CommandResult>- Specified by:
toArrayin interfaceList<CommandResult>
-
getEndTime
public long getEndTime()
Get end time of last command.- Returns:
- end time. (ms)
-
getResults
public List<CommandResult> getResults(ICommand command)
Get results of the command.- Parameters:
command- command.- Returns:
- results.
-
setEndTime
public void setEndTime(long endTime)
Set end time.- Parameters:
endTime- end time.
-
set
public CommandResult set(int index, CommandResult element)
- Specified by:
setin interfaceList<CommandResult>
-
add
public void add(int index, CommandResult element)- Specified by:
addin interfaceList<CommandResult>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<CommandResult>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<CommandResult>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<CommandResult>- Specified by:
containsin interfaceList<CommandResult>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<CommandResult>- Specified by:
containsAllin interfaceList<CommandResult>
-
addAll
public boolean addAll(int index, Collection<? extends CommandResult> c)- Specified by:
addAllin interfaceList<CommandResult>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<CommandResult>- Specified by:
retainAllin interfaceList<CommandResult>
-
remove
public CommandResult remove(int index)
- Specified by:
removein interfaceList<CommandResult>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<CommandResult>- Specified by:
removein interfaceList<CommandResult>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<CommandResult>- Specified by:
removeAllin interfaceList<CommandResult>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<CommandResult>- Specified by:
clearin interfaceList<CommandResult>
-
-