Package ghidra.util.datastruct
Class ListAccumulator<T>
- java.lang.Object
-
- ghidra.util.datastruct.ListAccumulator<T>
-
- All Implemented Interfaces:
Accumulator<T>
,java.lang.Iterable<T>
public class ListAccumulator<T> extends java.lang.Object implements Accumulator<T>
-
-
Constructor Summary
Constructors Constructor Description ListAccumulator()
ListAccumulator(java.util.List<T> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T t)
void
addAll(java.util.Collection<T> collection)
java.util.List<T>
asList()
boolean
contains(T t)
java.util.Collection<T>
get()
java.util.Iterator<T>
iterator()
int
size()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ghidra.util.datastruct.Accumulator
isEmpty, stream
-
-
-
-
Constructor Detail
-
ListAccumulator
public ListAccumulator()
-
ListAccumulator
public ListAccumulator(java.util.List<T> list)
-
-
Method Detail
-
add
public void add(T t)
- Specified by:
add
in interfaceAccumulator<T>
-
addAll
public void addAll(java.util.Collection<T> collection)
- Specified by:
addAll
in interfaceAccumulator<T>
-
contains
public boolean contains(T t)
- Specified by:
contains
in interfaceAccumulator<T>
-
get
public java.util.Collection<T> get()
- Specified by:
get
in interfaceAccumulator<T>
-
asList
public java.util.List<T> asList()
-
size
public int size()
- Specified by:
size
in interfaceAccumulator<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-