public final class StdMethodList extends FixedSizeList implements MethodList
MethodList, which directly stores
an array of Method objects and can be made immutable.| Constructor and Description |
|---|
StdMethodList(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
get(int n)
Get the
nth method. |
void |
set(int n,
Method method)
Sets the method at the given index.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutableclone, finalize, getClass, notify, notifyAll, wait, wait, waitisMutable, sizepublic StdMethodList(int size)
null.size - the size of the listpublic Method get(int n)
nth method.get in interface MethodListn - n >= 0, n < size(); which methodnon-null; the method in questionpublic void set(int n,
Method method)
n - >= 0, < size(); which methodmethod - null-ok; the method objectCopyright © 2020. All Rights Reserved.