Class ZeroSerializer


  • public class ZeroSerializer
    extends Object
    ZeroSerializer the request by different type. 1. String -> T 2. T -> JsonObject ( Envelop request ) 3. T -> String ( Generate resonse ) 4. Checking the request type to see where support serialization
    • Constructor Detail

      • ZeroSerializer

        public ZeroSerializer()
    • Method Detail

      • getValue

        public static Object getValue​(Class<?> paramType,
                                      String literal)
        String -> T
        Parameters:
        paramType - argument types
        literal - literal values
        Returns:
        deserialized object.
      • isDirect

        public static <T> boolean isDirect​(T input)
      • toSupport

        public static <T> Object toSupport​(T input)
        T -> JsonObject
        Type Parameters:
        T - Generic Types
        Parameters:
        input - Checked object
        Returns:
        returned values.