public interface Environment
| Modifier and Type | Method and Description |
|---|---|
String |
get(String string)
Returns a key
|
String |
get(String string,
String defaultValue)
Returns a key or a default value if the value isn't set
|
Iterable<String> |
getKeys() |
String |
getName()
Returns the environment name
|
URL |
getResource(String name)
Locates a resource according to your current environment.
|
boolean |
has(String key)
Checks if a key is present
|
void |
set(String key,
String value)
Sets a key in memory.
|
boolean |
supports(String feature)
Checks if a key is equals to true
if it's not present will return false
|
String getName()
boolean has(String key)
boolean supports(String feature)
String get(String string, String defaultValue)
void set(String key, String value)
key - value - Copyright © 2014. All Rights Reserved.