public interface IArgs
IFunctor implementation.| Modifier and Type | Interface and Description |
|---|---|
static interface |
IArgs.IBinding
A binding between an index or name and a value in an
IArgs
object. |
| Modifier and Type | Field and Description |
|---|---|
static String |
ARG_ARGS
Generic argument name for the transport of IArgs.
|
| Modifier and Type | Method and Description |
|---|---|
IArgs.IBinding |
add(Object object)
Add an indexed value.
|
Iterator<IArgs.IBinding> |
bindings()
An
Iterator over all available bindings. |
void |
clear()
Clear all bindings.
|
IArgs |
copy()
Create a copy.
|
IArgs.IBinding |
declare(String name)
Declare a name for a binding.
|
Object |
get(int index)
The argument at position
index. |
Object |
get(int index,
Object defaultValue)
The argument at position
index |
Object |
get(String name)
The argument named
name or null if not available. |
Object |
get(String name,
Object defaultValue)
The argument named
name or the defaultValue if not
available. |
boolean |
isDefined(int index)
true if an argument at index is defined. |
boolean |
isDefined(String name)
true if an argument named name is defined. |
Set<String> |
names()
The set of all argument names in the argument list if this argument list
is not indexed or null.
|
IArgs.IBinding |
put(int index,
Object value)
Define an indexed binding for value.
|
IArgs.IBinding |
put(String name,
Object value)
Define a named binding for value.
|
int |
size()
The total number of arguments.
|
void |
undefine(int index)
Undefine the binding at index.
|
void |
undefine(String name)
Undefine the binding for name.
|
static final String ARG_ARGS
IArgs.IBinding add(Object object)
object - Iterator<IArgs.IBinding> bindings()
Iterator over all available bindings.Iterator over all available bindings.void clear()
IArgs copy()
IArgs.IBinding declare(String name)
name - Object get(int index)
index.index - The index of the argument to return.index.Object get(int index, Object defaultValue)
indexindex - The index of the argument to return.defaultValue - The default value to be returned if argument is not available.indexObject get(String name)
name or null if not available.name - The name of the argument to return.name or null if not available.Object get(String name, Object defaultValue)
name or the defaultValue if not
available.name - The name of the argument to return.defaultValue - The default value to be returned if argument is not available.nameboolean isDefined(int index)
true if an argument at index is defined.index - true if an argument at index is defined.boolean isDefined(String name)
true if an argument named name is defined.name - true if an argument named name is
defined.Set<String> names()
IArgs.IBinding put(int index, Object value)
index - value - IArgs.IBinding put(String name, Object value)
name - value - int size()
void undefine(int index)
index - void undefine(String name)
name - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.