Package org.apache.juneau
Class AnnotationWorkList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<AnnotationWork>,Collection<AnnotationWork>,List<AnnotationWork>,RandomAccess
A list of
AnnotationWork objects.-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionadd(Stream<AnnotationInfo<? extends Annotation>> annotations) Adds entries for the specified annotations to this work list.add(AnnotationInfo<?> ai, AnnotationApplier<Annotation, Object> aa) Adds an entry to this list.static AnnotationWorkListcreate()Static creator.static AnnotationWorkListcreate(VarResolverSession vrs) Static creator.static AnnotationWorkListof(Stream<AnnotationInfo<? extends Annotation>> annotations) Static creator.static AnnotationWorkListof(VarResolverSession vrs, Stream<AnnotationInfo<? extends Annotation>> annotations) Static creator.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Method Details
-
create
Static creator.- Returns:
- A new list.
-
create
Static creator.- Parameters:
vrs- The variable resolver.- Returns:
- A new list.
-
of
Static creator.- Parameters:
annotations- The annotations to create work from.- Returns:
- A new list.
-
of
public static AnnotationWorkList of(VarResolverSession vrs, Stream<AnnotationInfo<? extends Annotation>> annotations) Static creator.- Parameters:
vrs- The variable resolver.annotations- The annotations to create work from.- Returns:
- A new list.
-
add
Adds an entry to this list.- Parameters:
ai- The annotation being applied.aa- The applier for the annotation.- Returns:
- This object.
-
add
Adds entries for the specified annotations to this work list.- Parameters:
annotations- The annotations to create work from.- Returns:
- This object.
-