Class TestPropertyValues.Pair
java.lang.Object
org.springframework.boot.test.util.TestPropertyValues.Pair
- Enclosing class:
TestPropertyValues
A single name value pair.
- Since:
- 2.0.0
- Author:
- Madhura Bhave, Phillip Webb, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static @Nullable TestPropertyValues.Pair
fromMapEntry
(@Nullable Map.Entry<String, String> entry) Factory method to create aTestPropertyValues.Pair
from aMap.Entry
.static @Nullable TestPropertyValues.Pair
Factory method to create aTestPropertyValues.Pair
from a name and value.static @Nullable TestPropertyValues.Pair
-
Method Details
-
addTo
-
parse
-
fromMapEntry
@Contract("!null -> !null") public static @Nullable TestPropertyValues.Pair fromMapEntry(@Nullable Map.Entry<String, String> entry) Factory method to create aTestPropertyValues.Pair
from aMap.Entry
.- Parameters:
entry
- the map entry- Returns:
- the
TestPropertyValues.Pair
instance ornull
- Since:
- 2.4.0
-
of
Factory method to create aTestPropertyValues.Pair
from a name and value.- Parameters:
name
- the namevalue
- the value- Returns:
- the
TestPropertyValues.Pair
instance ornull
- Since:
- 2.4.0
-