Package io.jmix.flowui.view.navigation
Class UrlParamSerializer
java.lang.Object
io.jmix.flowui.view.navigation.UrlParamSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialize(Class<T> type, String serializedValue) Deserializes the givenserializedValueas a value with giventype.protected IntegerparseInteger(String decoded) protected Longprotected StringparseString(String decoded) protected UUIDSerializes the givenvalueto string representation.protected StringserializePrimitive(Object value) protected StringserializeUuid(UUID value)
-
Field Details
-
Constructor Details
-
Method Details
-
serialize
Serializes the givenvalueto string representation.String, Integer, Long and UUID values are only supported.
- Parameters:
value- value to serialize- Returns:
- serialized string representation of given value
- Throws:
IllegalArgumentException- if null value is passed or it has an unsupported type
-
serializePrimitive
-
serializeUuid
-
deserialize
Deserializes the givenserializedValueas a value with giventype.String, Integer, Long and UUID ids are only supported.
- Parameters:
type- value typeserializedValue- serialized value- Returns:
- deserialized value
- Throws:
IllegalArgumentException- if null value and/or type are passed or the given value type is not supported
-
parseString
-
parseInteger
-
parseLong
-
parseUuid
-