Class UnknownDescribedType

  • All Implemented Interfaces:
    DescribedType

    public class UnknownDescribedType
    extends java.lang.Object
    implements DescribedType
    Generic AMQP Described type wrapper that is used whenever a decode encounters an Described type encoding for which there is no DescribedTypeDecoder registered.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnknownDescribedType​(java.lang.Object descriptor, java.lang.Object described)
      Creates a new wrapper around the type descriptor and the described value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getDescribed()
      Returns the described type value that is carried in this instance.
      java.lang.Object getDescriptor()
      Returns the Described Type descriptor that identified this instance.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnknownDescribedType

        public UnknownDescribedType​(java.lang.Object descriptor,
                                    java.lang.Object described)
        Creates a new wrapper around the type descriptor and the described value.
        Parameters:
        descriptor - The type descriptor that was used for the encoding of this type.
        described - The value that was encoded into the body of the described type.
    • Method Detail

      • getDescriptor

        public java.lang.Object getDescriptor()
        Description copied from interface: DescribedType
        Returns the Described Type descriptor that identified this instance.
        Specified by:
        getDescriptor in interface DescribedType
        Returns:
        the descriptor that identifies this instance.
      • getDescribed

        public java.lang.Object getDescribed()
        Description copied from interface: DescribedType
        Returns the described type value that is carried in this instance.
        Specified by:
        getDescribed in interface DescribedType
        Returns:
        the value carried inside this described instance.
      • equals

        public boolean equals​(java.lang.Object o)
        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