Class AbstractBufferView

  • All Implemented Interfaces:
    BufferView
    Direct Known Subclasses:
    ByteArraySegment, CompositeByteArraySegment

    public abstract class AbstractBufferView
    extends java.lang.Object
    implements BufferView
    Base implementation of BufferView, providing common functionality. Derived classes may override these methods with more efficient implementations tailored to their data types.
    • Constructor Detail

      • AbstractBufferView

        public AbstractBufferView()
    • Method Detail

      • hashCode

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

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

        public boolean equals​(BufferView other)
        Checks for equality against another BufferView instance. Note: this method provides a general implementation of equality. Derived classes should override this method with more efficient implementations if available.
        Parameters:
        other - The other BufferView instance.
        Returns:
        True if this instance and the other instance have the same contents.