@Test public void systemProperties() { System.setProperty("test", "value"); System.setProperty("prefix_transformed", "value2"); assertEquals("value", PropertySources.fromSystem().get("test").get()); assertFalse(PropertySources.fromSystem().get("test2").isPresent()); assertFalse(PropertySources.fromSystem().get("transformed").isPresent()); assertEquals("value2", PropertySources.fromSystem(v -> "prefix_" + v).get("transformed").get()); assertEquals("value", PropertySources.fromSystem().getRequired("test").asString()); }
public static PropertySourceChain fromSystem() { return fromSystem(null); }
PropertySources { public static PropertySourceChain fromSystem() { return fromSystem(null); } }
PropertySources { public static PropertySourceChain fromSystem() { return fromSystem(null); }  }
PropertySources { public static PropertySourceChain fromSystem() { return fromSystem(null); }  static PropertySourceChain from(PropertySource source); static PropertySourceChain from(PropertySource source, Func1<String, String> transformer); static PropertySourceChain fromConstantsClass(Class<T> constantsClass); static PropertySourceChain fromConstantsClass(Class<T> constantsClass, Func1<String, String> transformer); static PropertySourceChain fromComputed(Func1<String, String> computation); static PropertySourceChain fromComputed(Func1<String, String> computation, Func1<String, String> transformer); static PropertySourceChain fromEnvironment(); static PropertySourceChain fromEnvironment(Func1<String, String> transformer); static PropertySourceChain fromFile(String path); static PropertySourceChain fromFile(String path, Func1<String, String> transformer); static PropertySourceChain fromImmediate(Action1<ImmediatePropertySource> initializer); static PropertySourceChain fromImmediate(
            Action1<ImmediatePropertySource> initializer,
            Func1<String, String> transformer); static PropertySourceChain fromSystem(); static PropertySourceChain fromSystem(Func1<String, String> transformer); }
PropertySources { public static PropertySourceChain fromSystem() { return fromSystem(null); }  static PropertySourceChain from(PropertySource source); static PropertySourceChain from(PropertySource source, Func1<String, String> transformer); static PropertySourceChain fromConstantsClass(Class<T> constantsClass); static PropertySourceChain fromConstantsClass(Class<T> constantsClass, Func1<String, String> transformer); static PropertySourceChain fromComputed(Func1<String, String> computation); static PropertySourceChain fromComputed(Func1<String, String> computation, Func1<String, String> transformer); static PropertySourceChain fromEnvironment(); static PropertySourceChain fromEnvironment(Func1<String, String> transformer); static PropertySourceChain fromFile(String path); static PropertySourceChain fromFile(String path, Func1<String, String> transformer); static PropertySourceChain fromImmediate(Action1<ImmediatePropertySource> initializer); static PropertySourceChain fromImmediate(
            Action1<ImmediatePropertySource> initializer,
            Func1<String, String> transformer); static PropertySourceChain fromSystem(); static PropertySourceChain fromSystem(Func1<String, String> transformer);  }