Class InetAddressType

  • All Implemented Interfaces:
    java.util.Comparator<java.nio.ByteBuffer>, AssignmentTestable

    public class InetAddressType
    extends AbstractType<java.net.InetAddress>
    • Method Detail

      • fromJSONObject

        public Term fromJSONObject​(java.lang.Object parsed)
                            throws MarshalException
        Description copied from class: AbstractType
        Given a parsed JSON string, return a byte representation of the object.
        Specified by:
        fromJSONObject in class AbstractType<java.net.InetAddress>
        Parameters:
        parsed - the result of parsing a json string
        Throws:
        MarshalException
      • toJSONString

        public java.lang.String toJSONString​(java.nio.ByteBuffer buffer,
                                             ProtocolVersion protocolVersion)
        Description copied from class: AbstractType
        Converts the specified value into its JSON representation.

        The buffer position will stay the same.

        Overrides:
        toJSONString in class AbstractType<java.net.InetAddress>
        Parameters:
        buffer - the value to convert
        protocolVersion - the protocol version to use for the conversion
        Returns:
        a JSON string representing the specified value