Package org.kohsuke.stapler
Class FunctionList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Function>
-
- org.kohsuke.stapler.FunctionList
-
public final class FunctionList extends AbstractList<Function>
Immutable list ofFunction
s.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FunctionList.Filter
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description FunctionList(Collection<Function> functions)
FunctionList(Function... functions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionList
annotated(Class<? extends Annotation> ann)
ReturnsFunction
s that are annotated with the given annotation.Function
get(int index)
FunctionList
name(String name)
ReturnsFunction
s that have the given name.FunctionList
prefix(String prefix)
ReturnsFunction
s that start with the given prefix.FunctionList
signature(Class... args)
ReturnsFunction
s that has the given type parametersFunctionList
signatureStartsWith(Class... args)
ReturnsFunction
s that has the parameters that start with given types (but can have additional parameters.)int
size()
FunctionList
union(FunctionList that)
Compute set unions of two lists.FunctionList
webMethodsLegacy()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
FunctionList
public FunctionList(Function... functions)
-
FunctionList
public FunctionList(Collection<Function> functions)
-
-
Method Detail
-
get
public Function get(int index)
-
size
public int size()
- Specified by:
size
in interfaceCollection<Function>
- Specified by:
size
in interfaceList<Function>
- Specified by:
size
in classAbstractCollection<Function>
-
union
public FunctionList union(FunctionList that)
Compute set unions of two lists.
-
prefix
public FunctionList prefix(String prefix)
ReturnsFunction
s that start with the given prefix.
-
annotated
public FunctionList annotated(Class<? extends Annotation> ann)
ReturnsFunction
s that are annotated with the given annotation.
-
name
public FunctionList name(String name)
ReturnsFunction
s that have the given name.
-
signature
public FunctionList signature(Class... args)
ReturnsFunction
s that has the given type parameters
-
webMethodsLegacy
public FunctionList webMethodsLegacy()
-
signatureStartsWith
public FunctionList signatureStartsWith(Class... args)
ReturnsFunction
s that has the parameters that start with given types (but can have additional parameters.)
-
-