Class SerializedPrimitive

java.lang.Object
de.xima.fc.converter.json.SerializedPrimitive
All Implemented Interfaces:
Serializable

public final class SerializedPrimitive extends Object implements Serializable
A serialized primitive JSON value, together with its type.
Since:
8.2.0
See Also:
  • Constructor Details

    • SerializedPrimitive

      public SerializedPrimitive(String type, String value)
      Creates a new serialized primitive POJO.
      Parameters:
      type - The type of the primitive.
      value - The value of the primitive.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • type

      public String type()
      The type of the primitive.
      Returns:
      The type of the primitive.
    • value

      public String value()
      The value of the primitive.
      Returns:
      The value of the primitive.