Package io.datarouter.storage.util
Class PrimaryKeyPercentCodecTool
java.lang.Object
io.datarouter.storage.util.PrimaryKeyPercentCodecTool
public class PrimaryKeyPercentCodecTool
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PrimaryKeyPercentCodecTool() -
Method Summary
Modifier and Type Method Description static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
PKdecode(java.lang.Class<PK> pkClass, java.lang.String encodedPk)static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
java.util.List<PK>decodeMulti(java.lang.Class<PK> pkClass, char delimiter, java.lang.String encodedPks)static java.lang.Stringencode(io.datarouter.model.key.primary.PrimaryKey<?> pk)static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
java.lang.StringencodeMulti(java.util.Collection<PK> pks, char delimiter)
-
Constructor Details
-
PrimaryKeyPercentCodecTool
public PrimaryKeyPercentCodecTool()
-
-
Method Details
-
encode
public static java.lang.String encode(io.datarouter.model.key.primary.PrimaryKey<?> pk) -
encodeMulti
public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> java.lang.String encodeMulti(java.util.Collection<PK> pks, char delimiter) -
decode
public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> PK decode(java.lang.Class<PK> pkClass, java.lang.String encodedPk) -
decodeMulti
public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> java.util.List<PK> decodeMulti(java.lang.Class<PK> pkClass, char delimiter, java.lang.String encodedPks)
-