public class ParametersImpl extends Application.Parameters
Constructor and Description |
---|
ParametersImpl()
Constructs an empty Parameters object.
|
ParametersImpl(List<String> args)
Constructs an Parameters object from the specified list of arguments.
|
ParametersImpl(Map params,
String[] arguments)
Constructs an Parameters object from the specified map of named
parameters.
|
ParametersImpl(String[] args)
Constructs an Parameters object from the specified array of unnamed
parameters.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getNamed()
Retrieves a read-only map of the named parameters.
|
static Application.Parameters |
getParameters(Application app) |
List<String> |
getRaw()
Retrieves a read-only list of the raw arguments.
|
List<String> |
getUnnamed()
Retrieves a read-only list of the unnamed parameters.
|
static void |
registerParameters(Application app,
Application.Parameters p) |
public ParametersImpl()
public ParametersImpl(List<String> args)
args
- list of command line argumentspublic ParametersImpl(String[] args)
args
- array of command line argumentspublic List<String> getRaw()
Application.Parameters
getRaw
in class Application.Parameters
public Map<String,String> getNamed()
Application.Parameters
getNamed
in class Application.Parameters
public List<String> getUnnamed()
Application.Parameters
getUnnamed
in class Application.Parameters
public static Application.Parameters getParameters(Application app)
public static void registerParameters(Application app, Application.Parameters p)
Copyright © 2020. All rights reserved.