Class Deprecated

  • All Implemented Interfaces:
    ToNode

    public final class Deprecated
    extends java.lang.Object
    implements ToNode
    Container for information on a deprecated parameter.
    • Method Detail

      • fromNode

        public static Deprecated fromNode​(ObjectNode objectNode)
        Creates a Deprecated of a specific type from the given Node information.
        Parameters:
        objectNode - the node to deserialize.
        Returns:
        the created Deprecated.
      • getMessage

        public java.util.Optional<java.lang.String> getMessage()
        Gets the deprecation message value.
        Returns:
        returns the optional deprecation message value.
      • getSince

        public java.util.Optional<java.lang.String> getSince()
        Gets the deprecated since value.
        Returns:
        returns the optional deprecated since value.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object