Class ProtobufUtils
java.lang.Object
com.devcycle.sdk.server.local.utils.ProtobufUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VariableType_PBstatic DVCUser_PBcreateDVCUserPB(DevCycleUser user) static NullableCustomDatastatic NullableDoublecreateNullableDouble(double value) static NullableStringcreateNullableString(String value) static <T> Variable<T>createVariable(SDKVariable_PB sdkVariable, T defaultValue) Create the appropriate Variable instance from the protobuf SDKVariable_PB object provided
-
Constructor Details
-
ProtobufUtils
public ProtobufUtils()
-
-
Method Details
-
createDVCUserPB
-
createVariable
public static <T> Variable<T> createVariable(SDKVariable_PB sdkVariable, T defaultValue) throws com.fasterxml.jackson.core.JsonProcessingException Create the appropriate Variable instance from the protobuf SDKVariable_PB object provided- Parameters:
sdkVariable-defaultValue-- Returns:
- A new Variable instance
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
createNullableString
-
createNullableDouble
-
createNullableCustomData
-
convertTypeEnumToVariableType
-