public class IntegerListDescription extends Object implements OptInputDescription
Constructor and Description |
---|
IntegerListDescription()
Creates object without setting any field
|
IntegerListDescription(int defaultValue,
int[] values,
String[] valueNames)
Creates object and sets all the fields
|
Modifier and Type | Method and Description |
---|---|
int |
getDefaultValue()
Returns default value, that is used if user doesn't set optional input
|
Object |
getOptInputDefaultValue()
Returns parameter's default value
|
String[] |
getValueNames()
Returns names of the every value in array
|
int[] |
getValues()
Returns array of the values, that user can set
|
void |
setDefaultValue(int defaultValue)
Sets default value, that is used if user doesn't set optional input
|
void |
setValueNames(String[] valueNames)
Sets value names
|
void |
setValues(int[] values)
Sets array of the values, that user can set
|
public IntegerListDescription()
public IntegerListDescription(int defaultValue, int[] values, String[] valueNames)
defaultValue
- default value, that is used if user doesn't set optional inputvalues
- array of the values as integersvalueNames
- name of every valuepublic int getDefaultValue()
public void setDefaultValue(int defaultValue)
defaultValue
- default valuepublic int[] getValues()
public void setValues(int[] values)
values
- array of the values, that user can setpublic String[] getValueNames()
public void setValueNames(String[] valueNames)
valueNames
- value namespublic Object getOptInputDefaultValue()
getOptInputDefaultValue
in interface OptInputDescription
Copyright © 2016. All rights reserved.