Setting of numeric fields such byte, short, int, long, float, and double fields is supported.
This includes both unboxed and boxed versions (e.g. int vs Integer). If there is a problem
setting the argument to match the desired type, a ConfigurationException is thrown.
File option fields are supported by simply wrapping the string argument in a File object without
testing for the existence of the file.
Parameterized Collection fields such as List<File> and Set<String> are supported as
long as the parameter type is otherwise supported by the option setter. The collection field
should be initialized with an appropriate collection instance.
All fields will be processed, including public, protected, default (package) access, private and
inherited fields.
ported from dalvik.runner.OptionParser
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]