public final class PropertySourceUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Function<String,Properties> |
KEY_VALUE_TO_PROPERTIES
Function to convert a String to Properties.
|
static Function<Properties,Map<String,Object>> |
PROPERTIES_TO_MAP
Function to convert Properties to a Map.
|
Modifier and Type | Method and Description |
---|---|
static <T> BinaryOperator<T> |
throwingMerger()
returns a
BinaryOperator that unconditionally throws an
IllegalStateException . |
static Function<String,Properties> |
yamlParserGenerator(org.springframework.core.env.Environment environment)
Function to convert String into Properties with an environment.
|
public static final Function<String,Properties> KEY_VALUE_TO_PROPERTIES
public static final Function<Properties,Map<String,Object>> PROPERTIES_TO_MAP
public static Function<String,Properties> yamlParserGenerator(org.springframework.core.env.Environment environment)
environment
- Environment.public static <T> BinaryOperator<T> throwingMerger()
BinaryOperator
that unconditionally throws an
IllegalStateException
.T
- type of the argumentBinaryOperator
Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.