public class StringMapEntry
extends java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.String>
| Constructor and Description |
|---|
StringMapEntry(java.lang.String key,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
static StringMapEntry |
of(java.util.Map.Entry<java.lang.String,java.lang.String> entry)
Constructs a new StringMapEntry from the passed Map.Entry
|
static StringMapEntry |
of(java.lang.String s)
Deserializes a string representation into a single StringMapEntry.
|
java.lang.String |
toString() |
public StringMapEntry(java.lang.String key,
java.lang.String value)
public static StringMapEntry of(java.lang.String s)
This factory method expects the input string to contain exactly one key-value pair.
It uses MapSerializer for parsing and MapTools.getOnlyEntry(Map)
to extract the entry.
s - The serialized hstore/map string.java.lang.IllegalArgumentException - if the provided string does not contain exactly one entry.public static StringMapEntry of(java.util.Map.Entry<java.lang.String,java.lang.String> entry)
entry - The entry to convert into a StringMapEntry.public java.lang.String toString()
toString in class java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.String>Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.