public static class TestPropertyValues.Pair extends Object
Constructor and Description |
---|
Pair(String name,
String value)
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
of(String, String) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(Map<String,Object> properties) |
static TestPropertyValues.Pair |
fromMapEntry(Map.Entry<String,String> entry)
Factory method to create a
TestPropertyValues.Pair from a Map.Entry . |
static TestPropertyValues.Pair |
of(String name,
String value)
Factory method to create a
TestPropertyValues.Pair from a name and value. |
static TestPropertyValues.Pair |
parse(String pair) |
@Deprecated public Pair(String name, String value)
of(String, String)
TestPropertyValues.Pair
instance.name
- the namevalue
- the valuepublic static TestPropertyValues.Pair parse(String pair)
public static TestPropertyValues.Pair fromMapEntry(Map.Entry<String,String> entry)
TestPropertyValues.Pair
from a Map.Entry
.entry
- the map entryTestPropertyValues.Pair
instance or null
public static TestPropertyValues.Pair of(String name, String value)
TestPropertyValues.Pair
from a name and value.name
- the namevalue
- the valueTestPropertyValues.Pair
instance or null