public static class MethodList.Explicit extends AbstractList<MethodDescription> implements MethodList
MethodList.Empty, MethodList.Explicit, MethodList.ForLoadedType
modCount
Constructor and Description |
---|
Explicit(List<? extends MethodDescription> methodDescriptions)
Creates a new wrapper for a given list of methods.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
filter(MethodMatcher methodMatcher)
Returns a new list that only includes the methods that are matched by the given method matcher.
|
MethodDescription |
get(int index) |
MethodDescription |
getOnly()
Returns the only element in this method list or throws an exception if there is more than or less than
one element in this list.
|
int |
size() |
MethodList |
subList(int fromIndex,
int toIndex) |
String |
toString() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Explicit(List<? extends MethodDescription> methodDescriptions)
methodDescriptions
- The underlying list of methods used for this method list.public MethodDescription get(int index)
get
in interface List<MethodDescription>
get
in class AbstractList<MethodDescription>
public int size()
size
in interface Collection<MethodDescription>
size
in interface List<MethodDescription>
size
in class AbstractCollection<MethodDescription>
public MethodList filter(MethodMatcher methodMatcher)
MethodList
filter
in interface MethodList
methodMatcher
- A filter applied to this list.methodMatcher
.public MethodDescription getOnly()
MethodList
getOnly
in interface MethodList
public MethodList subList(int fromIndex, int toIndex)
subList
in interface List<MethodDescription>
subList
in interface MethodList
subList
in class AbstractList<MethodDescription>
public String toString()
toString
in class AbstractCollection<MethodDescription>
Copyright © 2014. All rights reserved.