| Constructor and Description |
|---|
ArgumentList()
Create a new empty argument list.
|
ArgumentList(Argument<?>... arguments)
Create a new argument list with the specified arguments.
|
ArgumentList(Collection<Argument<?>> arguments)
Create a new argument list with the arguments in the specified
collection of arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Argument<?> argument)
Add the specified argument to this argument list.
|
boolean |
addAll(Collection<Argument<?>> arguments)
Add all of the arguments in the specified collection of arguments to this
argument list.
|
Iterator<Argument<?>> |
iterator() |
int |
size()
Return the number of arguments in this argument list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ArgumentList()
public ArgumentList(Argument<?>... arguments)
IllegalArgumentException
will be thrown.arguments - variable number of arguments, must not be nullpublic ArgumentList(Collection<Argument<?>> arguments)
arguments must
not contain any duplicate short or long names or an IllegalArgumentException
will be thrown.arguments - collection of arguments to add, must not be nullpublic boolean add(Argument<?> argument)
IllegalArgumentException
will be thrown.argument - argument to add, must not be nullpublic boolean addAll(Collection<Argument<?>> arguments)
arguments must not be contained
in this argument list already or an IllegalArgumentException
will be thrown.arguments - collection of arguments to add, must not be nullpublic int size()
Copyright © 2004–2022 dishevelled.org. All rights reserved.