Class GenericIdentifiable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] data  
      private int id  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      byte[] getData()  
      int getId()
      Return the (type) identity of this entity.
      int hashCode()  
      java.lang.String toString()  
      void write​(OutputStream os)
      Write this object directly to the output stream.
      • Methods inherited from class java.lang.Object

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

      • id

        private int id
      • data

        private byte[] data
    • Constructor Detail

      • GenericIdentifiable

        public GenericIdentifiable​(int id,
                                   InputStream is)
      • GenericIdentifiable

        public GenericIdentifiable​(int id,
                                   byte[] data)
    • Method Detail

      • getId

        public int getId()
        Description copied from interface: Identifiable
        Return the (type) identity of this entity.
        Specified by:
        getId in interface Identifiable
        Returns:
        int
      • write

        public void write​(OutputStream os)
        Description copied from interface: Writeable
        Write this object directly to the output stream.
        Specified by:
        write in interface Writeable
        Parameters:
        os - stream to write to
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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
      • getData

        @ManagedAttribute
        @Description("The tagged component or profile CDR encoded data")
        public byte[] getData()