Class ImageCounterList<T extends Assignment<ObjectMask>>
Object
ImageCounterList<T>
- Type Parameters:
T- the payload-type of eachImageCounter.
- All Implemented Interfaces:
Iterable<ImageCounter<T>>,ImageCounter<T>
public class ImageCounterList<T extends Assignment<ObjectMask>>
extends Object
implements Iterable<ImageCounter<T>>, ImageCounter<T>
Allows operations to be applied to several
ImageCounters collectively.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ImageCounter<T> e) Adds anImageCounterto the list.<S extends ImageCounter<T>>
booleanaddAll(Collection<S> e) Adds a collection ofImageCounters to the list.voidaddAnnotatedImage(T payload) Add an image that had an associated annotation.voidAdd an image that did not have an associated annotation.iterator()stream()Returns a sequentialStreamwith this list as its source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ImageCounterList
public ImageCounterList()
-
-
Method Details
-
add
Adds anImageCounterto the list.- Parameters:
e- theImageCounterto add.- Returns:
- true if the counter was added successfully, false otherwise.
-
addAll
Adds a collection ofImageCounters to the list.- Type Parameters:
S- the type ofImageCounters in the collection.- Parameters:
e- the collection ofImageCounters to add.- Returns:
- true if the collection was added successfully, false otherwise.
-
addUnannotatedImage
public void addUnannotatedImage()Description copied from interface:ImageCounterAdd an image that did not have an associated annotation.- Specified by:
addUnannotatedImagein interfaceImageCounter<T extends Assignment<ObjectMask>>
-
addAnnotatedImage
Description copied from interface:ImageCounterAdd an image that had an associated annotation.- Specified by:
addAnnotatedImagein interfaceImageCounter<T extends Assignment<ObjectMask>>- Parameters:
payload- the payload associated with the annotated image.
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends Assignment<ObjectMask>>
-
stream
Returns a sequentialStreamwith this list as its source.- Returns:
- a sequential
Streamover the elements in this list.
-