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
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, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
CommandResultList
public CommandResultList()
-
-
Method Details
-
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
- Specified by:
addin interfaceCollection<CommandResult>- Specified by:
addin interfaceList<CommandResult>
-
addAll
- Specified by:
addAllin interfaceCollection<CommandResult>- Specified by:
addAllin interfaceList<CommandResult>
-
get
- Specified by:
getin interfaceList<CommandResult>
-
setResult
Set result.- Parameters:
result- result.- Returns:
- same as result.
-
getResult
Get latest result.- Returns:
- latest result.
-
iterator
- Specified by:
iteratorin interfaceCollection<CommandResult>- Specified by:
iteratorin interfaceIterable<CommandResult>- Specified by:
iteratorin interfaceList<CommandResult>
-
listIterator
- Specified by:
listIteratorin interfaceList<CommandResult>
-
listIterator
- Specified by:
listIteratorin interfaceList<CommandResult>
-
subList
- Specified by:
subListin interfaceList<CommandResult>
-
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
Get results of the command.- Parameters:
command- command.- Returns:
- results.
-
setEndTime
public void setEndTime(long endTime)Set end time.- Parameters:
endTime- end time.
-
set
- Specified by:
setin interfaceList<CommandResult>
-
add
- Specified by:
addin interfaceList<CommandResult>
-
indexOf
- Specified by:
indexOfin interfaceList<CommandResult>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<CommandResult>
-
contains
- Specified by:
containsin interfaceCollection<CommandResult>- Specified by:
containsin interfaceList<CommandResult>
-
containsAll
- Specified by:
containsAllin interfaceCollection<CommandResult>- Specified by:
containsAllin interfaceList<CommandResult>
-
addAll
- Specified by:
addAllin interfaceList<CommandResult>
-
retainAll
- Specified by:
retainAllin interfaceCollection<CommandResult>- Specified by:
retainAllin interfaceList<CommandResult>
-
remove
- Specified by:
removein interfaceList<CommandResult>
-
remove
- Specified by:
removein interfaceCollection<CommandResult>- Specified by:
removein interfaceList<CommandResult>
-
removeAll
- Specified by:
removeAllin interfaceCollection<CommandResult>- Specified by:
removeAllin interfaceList<CommandResult>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<CommandResult>- Specified by:
clearin interfaceList<CommandResult>
-