public class Env extends Value.Object
Modifier and Type | Class and Description |
---|---|
static class |
Env.PropertySource |
Value.Array, Value.Missing, Value.Object, Value.Simple
Modifier and Type | Method and Description |
---|---|
static Env |
build(Env.PropertySource... sources) |
static Env |
defaultEnvironment(ClassLoader loader) |
static Env |
defaultEnvironment(ClassLoader loader,
String filename) |
static Env.PropertySource |
defaults() |
static Env |
empty(String name) |
Value |
get(String name) |
boolean |
matches(String... names) |
boolean |
matches(String name) |
String |
name() |
static Env.PropertySource |
parse(String... args) |
static Env.PropertySource |
systemEnv() |
static Env.PropertySource |
systemProperties() |
String |
toString() |
get, iterator, put, put, put, size, toMultimap, value
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
array, booleanValue, booleanValue, byteValue, byteValue, create, doubleValue, doubleValue, fileUpload, floatValue, floatValue, headers, intValue, intValue, isArray, isMissing, isObject, isSimple, isUpload, longValue, longValue, missing, object, path, queryString, resolve, resolve, resolve, resolve, to, to, to, toEnum, toEnum, toList, toList, toList, toMap, toOptional, toOptional, toOptional, toSet, toSet, value, value, value
forEach, spliterator
public Env(String name)
public Value get(@Nonnull String name)
get
in interface Value
get
in class Value.Object
@Nonnull public String name()
name
in interface Value
name
in class Value.Object
public boolean matches(String... names)
public String toString()
toString
in class Value.Object
public static Env.PropertySource parse(String... args)
public static Env.PropertySource systemProperties()
public static Env.PropertySource systemEnv()
public static Env defaultEnvironment(ClassLoader loader)
public static Env defaultEnvironment(ClassLoader loader, String filename)
public static Env.PropertySource defaults()
public static Env build(Env.PropertySource... sources)
Copyright © 2019. All rights reserved.