public class SplicingIdGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ESCAPE_STR |
static String |
ID_SPLITOR_STR |
static String |
IDS_SPLITOR_STR |
| Constructor and Description |
|---|
SplicingIdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
concat(String... ids)
Concat multiple ids into one composite id with IDS_SPLITOR
|
static String |
concatValues(List<?> values)
Concat property values with NAME_SPLITOR
|
static String |
concatValues(Object... values)
Concat property values with NAME_SPLITOR
|
static SplicingIdGenerator |
instance() |
static String[] |
parse(Id id)
Parse a single id into multiple parts with ID_SPLITOR
|
static Id |
splicing(String... parts)
Concat multiple parts into a single id with ID_SPLITOR
|
static String[] |
split(String ids)
Split a composite id into multiple ids with IDS_SPLITOR
|
public static final String ESCAPE_STR
public static final String IDS_SPLITOR_STR
public static final String ID_SPLITOR_STR
public static SplicingIdGenerator instance()
public static String concat(String... ids)
ids - the string id values to be contactedpublic static String[] split(String ids)
ids - the string id value to be splitpublic static String concatValues(List<?> values)
values - the property values to be concattedpublic static String concatValues(Object... values)
values - the property values to be contactedpublic static Id splicing(String... parts)
parts - the string id values to be splicedCopyright © 2023 The Apache Software Foundation. All rights reserved.