Class NotSuppliedConfiguration
- java.lang.Object
-
- com.backpackcloud.zipper.impl.configuration.NotSuppliedConfiguration
-
- All Implemented Interfaces:
Configuration,Supplier<String>
public class NotSuppliedConfiguration extends Object implements Configuration
-
-
Field Summary
-
Fields inherited from interface com.backpackcloud.zipper.Configuration
NOT_SUPPLIED
-
-
Constructor Summary
Constructors Constructor Description NotSuppliedConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasBoolean()Gets the value of this configuration as anboolean.intasInt()Gets the value of this configuration as anint.longasLong()Gets the value of this configuration as anlong.Stringget()Gets the value of this configuration.booleanisSet()Checks if this source has some configuration set.Stringread()Assumes this configuration value is pointing to an external location and reads the value at that location.List<String>readLines()Assumes this configuration value is pointing to an external location and reads the lines at that location.
-
-
-
Method Detail
-
isSet
public boolean isSet()
Description copied from interface:ConfigurationChecks if this source has some configuration set.- Specified by:
isSetin interfaceConfiguration- Returns:
trueif this source holds any configuration value.
-
get
public String get()
Description copied from interface:ConfigurationGets the value of this configuration.- Specified by:
getin interfaceConfiguration- Specified by:
getin interfaceSupplier<String>- Returns:
- the configuration value.
-
asInt
public int asInt()
Description copied from interface:ConfigurationGets the value of this configuration as anint.- Specified by:
asIntin interfaceConfiguration- Returns:
- an
intvalue defined by this configuration.
-
asLong
public long asLong()
Description copied from interface:ConfigurationGets the value of this configuration as anlong.- Specified by:
asLongin interfaceConfiguration- Returns:
- a
longvalue defined by this configuration.
-
asBoolean
public boolean asBoolean()
Description copied from interface:ConfigurationGets the value of this configuration as anboolean.- Specified by:
asBooleanin interfaceConfiguration- Returns:
- a
booleanvalue defined by this configuration.
-
read
public String read()
Description copied from interface:ConfigurationAssumes this configuration value is pointing to an external location and reads the value at that location.- Specified by:
readin interfaceConfiguration- Returns:
- the value stored in the location defined by this configuration.
-
readLines
public List<String> readLines()
Description copied from interface:ConfigurationAssumes this configuration value is pointing to an external location and reads the lines at that location.- Specified by:
readLinesin interfaceConfiguration- Returns:
- the lines stored in the location defined by this configuration.
-
-