- 
- All Superinterfaces:
- NlsArgumentsKeys
 
 public interface NlsArguments extends NlsArgumentsKeys A simple container forarguments used asdynamic argumentsof aNlsMessage. It is similar toMapbut with less overhead in case there are only up to two arguments.
 This interface provides many staticof*methods to create instances ofNlsArguments.- See Also:
- NlsMessage.getArgument(String),- NlsVariable
 
- 
- 
Field Summary- 
Fields inherited from interface io.github.mmm.nls.argument.NlsArgumentsKeysKEY_ANNOTATION, KEY_ARGUMENT, KEY_CAPACITY, KEY_CONTAINER, KEY_DATE, KEY_DEFAULT, KEY_DIRECTORY, KEY_ERROR, KEY_EXISTING, KEY_EXPECTED, KEY_FILE, KEY_FORMAT, KEY_FUNCTION, KEY_ID, KEY_KEY, KEY_LOCATION, KEY_MAX, KEY_MIN, KEY_MODE, KEY_NAME, KEY_OBJECT, KEY_OPERATION, KEY_OPTION, KEY_PATH, KEY_PROPERTY, KEY_QUERY, KEY_RESOURCE, KEY_SIZE, KEY_SOURCE, KEY_TARGET_TYPE, KEY_TITLE, KEY_TYPE, KEY_URI, KEY_USER, KEY_VALUE
 
- 
 - 
Method Summary
 
- 
- 
- 
Method Detail- 
getObject get(String key) - Parameters:
- key- the key of the argument to get. Please prefer one of the- KEY_*constants such as- NlsArgumentsKeys.KEY_VALUE.
- Returns:
- the value of the argument with the given keyornullif no such argument exists.
- See Also:
- Map.get(Object)
 
 - 
getKeyString getKey(int index) 
 - 
sizeint size() - Returns:
- the number of arguments.
 
 - 
isEmptydefault boolean isEmpty() - Returns:
- trueif empty (- sizeis- 0).
 
 - 
withNlsArguments with(String key, Object value) - Parameters:
- key- the key of the argument.
- value- the- valueof the argument.
- Returns:
- the new NlsArgumentsextended with the given argument.
 
 - 
ofstatic NlsArguments of() - Returns:
- an empty instance of NlsArguments.
 
 - 
ofstatic NlsArguments of(Map<String,Object> map) - Parameters:
- map- the- Mapwith the arguments to wrap.
- Returns:
- an instance of NlsArgumentsthat delegates to the givenMap.
 
 - 
ofstatic NlsArguments of(String key, Object value) - Parameters:
- key- the key of the argument.
- value- the- valueof the argument.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofstatic NlsArguments of(String key1, Object value1, String key2, Object value2) - Parameters:
- key1- the key of the first argument.
- value1- the- valueof the first argument.
- key2- the key of the second argument.
- value2- the- valueof the second argument.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 - 
ofstatic NlsArguments of(String key1, Object value1, String key2, Object value2, String key3, Object value3) - Parameters:
- key1- the key of the first argument.
- value1- the- valueof the first argument.
- key2- the key of the second argument.
- value2- the- valueof the second argument.
- key3- the key of the third argument.
- value3- the- valueof the third argument.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 - 
ofValuestatic NlsArguments ofValue(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_VALUE.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofObjectstatic NlsArguments ofObject(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_OBJECT.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofArgumentstatic NlsArguments ofArgument(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_ARGUMENT.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofDefaultstatic NlsArguments ofDefault(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_DEFAULT.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofDatestatic NlsArguments ofDate(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_DATE.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofFilestatic NlsArguments ofFile(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_FILE.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofNamestatic NlsArguments ofName(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_NAME.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofTypestatic NlsArguments ofType(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_TYPE.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofFormatstatic NlsArguments ofFormat(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_FORMAT.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofKeystatic NlsArguments ofKey(Object value) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_KEY.
- Returns:
- an instance of NlsArgumentscontaining the single specified argument.
 
 - 
ofKeyValuestatic NlsArguments ofKeyValue(Object key, Object value) - Parameters:
- key- the- valuefor- NlsArgumentsKeys.KEY_KEY.
- value- the- valuefor- NlsArgumentsKeys.KEY_VALUE.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 - 
ofObjectKeystatic NlsArguments ofObjectKey(Object object, Object key) - Parameters:
- object- the- valuefor- NlsArgumentsKeys.KEY_OBJECT.
- key- the- valuefor- NlsArgumentsKeys.KEY_KEY.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 - 
ofMinMaxstatic NlsArguments ofMinMax(Object min, Object max) - Parameters:
- min- the- valuefor- NlsArgumentsKeys.KEY_MIN.
- max- the- valuefor- NlsArgumentsKeys.KEY_MAX.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 - 
ofValueMinMaxstatic NlsArguments ofValueMinMax(Object value, Object min, Object max) - Parameters:
- value- the- valuefor- NlsArgumentsKeys.KEY_VALUE.
- min- the- valuefor- NlsArgumentsKeys.KEY_MIN.
- max- the- valuefor- NlsArgumentsKeys.KEY_MAX.
- Returns:
- an instance of NlsArgumentscontaining the single specified arguments.
 
 
- 
 
-