Package org.jmrtd.io

Class FragmentBuffer.Fragment

    • Method Detail

      • getInstance

        public static FragmentBuffer.Fragment getInstance​(int offset,
                                                          int length)
        Returns a fragment instance.
        Parameters:
        offset - the offset within the buffer
        length - the length of the fragment
        Returns:
        the new fragment
      • getOffset

        public int getOffset()
        Returns this fragment's offset within the buffer.
        Returns:
        the offset of the fragment
      • getLength

        public int getLength()
        Returns the length of the fragment.
        Returns:
        the length of the fragment
      • equals

        public boolean equals​(Object otherObject)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object