Class TasksInfoWrapper
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.api.TasksInfoWrapper
-
- All Implemented Interfaces:
Serializable
,Iterable<GraphNode.TaskInfo>
,Collection<GraphNode.TaskInfo>
,List<GraphNode.TaskInfo>
public class TasksInfoWrapper extends Object implements List<GraphNode.TaskInfo>, Serializable
Wraps the list ofGraphNode.TaskInfo
on aGraphNode
to expose in a pretty way information to MVEL scripts.- Since:
- 5.7.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<GraphNode.TaskInfo>
tasks
-
Constructor Summary
Constructors Constructor Description TasksInfoWrapper()
TasksInfoWrapper(List<GraphNode.TaskInfo> tasks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, GraphNode.TaskInfo element)
boolean
add(GraphNode.TaskInfo e)
boolean
addAll(int index, Collection<? extends GraphNode.TaskInfo> c)
boolean
addAll(Collection<? extends GraphNode.TaskInfo> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
GraphNode.TaskInfo
get(int index)
int
getNumberEndedWithStatus(String status)
int
indexOf(Object o)
boolean
isEmpty()
Iterator<GraphNode.TaskInfo>
iterator()
int
lastIndexOf(Object o)
ListIterator<GraphNode.TaskInfo>
listIterator()
ListIterator<GraphNode.TaskInfo>
listIterator(int index)
GraphNode.TaskInfo
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
GraphNode.TaskInfo
set(int index, GraphNode.TaskInfo element)
int
size()
List<GraphNode.TaskInfo>
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, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
tasks
protected List<GraphNode.TaskInfo> tasks
-
-
Constructor Detail
-
TasksInfoWrapper
public TasksInfoWrapper()
-
TasksInfoWrapper
public TasksInfoWrapper(List<GraphNode.TaskInfo> tasks)
-
-
Method Detail
-
getNumberEndedWithStatus
public int getNumberEndedWithStatus(String status)
-
size
public int size()
- Specified by:
size
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
size
in interfaceList<GraphNode.TaskInfo>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
isEmpty
in interfaceList<GraphNode.TaskInfo>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
contains
in interfaceList<GraphNode.TaskInfo>
-
iterator
public Iterator<GraphNode.TaskInfo> iterator()
- Specified by:
iterator
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
iterator
in interfaceIterable<GraphNode.TaskInfo>
- Specified by:
iterator
in interfaceList<GraphNode.TaskInfo>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
toArray
in interfaceList<GraphNode.TaskInfo>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
toArray
in interfaceList<GraphNode.TaskInfo>
-
add
public boolean add(GraphNode.TaskInfo e)
- Specified by:
add
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
add
in interfaceList<GraphNode.TaskInfo>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
remove
in interfaceList<GraphNode.TaskInfo>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
containsAll
in interfaceList<GraphNode.TaskInfo>
-
addAll
public boolean addAll(Collection<? extends GraphNode.TaskInfo> c)
- Specified by:
addAll
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
addAll
in interfaceList<GraphNode.TaskInfo>
-
addAll
public boolean addAll(int index, Collection<? extends GraphNode.TaskInfo> c)
- Specified by:
addAll
in interfaceList<GraphNode.TaskInfo>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
removeAll
in interfaceList<GraphNode.TaskInfo>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
retainAll
in interfaceList<GraphNode.TaskInfo>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<GraphNode.TaskInfo>
- Specified by:
clear
in interfaceList<GraphNode.TaskInfo>
-
get
public GraphNode.TaskInfo get(int index)
- Specified by:
get
in interfaceList<GraphNode.TaskInfo>
-
set
public GraphNode.TaskInfo set(int index, GraphNode.TaskInfo element)
- Specified by:
set
in interfaceList<GraphNode.TaskInfo>
-
add
public void add(int index, GraphNode.TaskInfo element)
- Specified by:
add
in interfaceList<GraphNode.TaskInfo>
-
remove
public GraphNode.TaskInfo remove(int index)
- Specified by:
remove
in interfaceList<GraphNode.TaskInfo>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<GraphNode.TaskInfo>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<GraphNode.TaskInfo>
-
listIterator
public ListIterator<GraphNode.TaskInfo> listIterator()
- Specified by:
listIterator
in interfaceList<GraphNode.TaskInfo>
-
listIterator
public ListIterator<GraphNode.TaskInfo> listIterator(int index)
- Specified by:
listIterator
in interfaceList<GraphNode.TaskInfo>
-
subList
public List<GraphNode.TaskInfo> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<GraphNode.TaskInfo>
-
-