public final class EncodedItemComposedKey extends ItemComposedKey
Builder.fromEncoded(key.toEncoded()) is always equal to key.for more details about the encoding algorithm used.,
for more details about JSON from/to object conversion.,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
EncodedItemComposedKey.Builder |
| Modifier and Type | Field and Description |
|---|---|
static BaseEncoding |
BASE_ENCODING |
static ObjectMapper |
JSON_MAPPER |
| Constructor and Description |
|---|
EncodedItemComposedKey() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toEncoded()
Returns a Base 64 representation of the object.
|
java.lang.String |
toJsonString()
Returns a json string representation of the object.
|
getCatalogId, getCatalogVersion, getItemId, setCatalogId, setCatalogVersion, setItemIdpublic static final BaseEncoding BASE_ENCODING
public static final ObjectMapper JSON_MAPPER
public final java.lang.String toJsonString()
EncodedItemComposedKey itemComposedKey = new EncodedItemComposedKey();
itemComposedKey.setItemId("item-id");
itemComposedKey.setCatalogId("catalog-id");
itemComposedKey.setCatalogVersion("catalog-version");
,
this method will return a JSON string with the following format:
{
"itemId": "item-id",
"catalogId": "catalog-id",
"catalogVersion": "catalog-version"
}
public final java.lang.String toEncoded()
value = base64Encode(toJson(this))
for more details about the encoding algorithm.Copyright © 2018 SAP SE. All Rights Reserved.