Package org.jmrtd.lds

Class AbstractListInfo<R extends Serializable>

    • Constructor Detail

      • AbstractListInfo

        public AbstractListInfo()
    • Method Detail

      • getSubRecords

        protected List<R> getSubRecords()
        Returns the sub-records of this list.
        Returns:
        the sub-records
      • add

        protected void add​(R subRecord)
        Adds a sub-record to this list.
        Parameters:
        subRecord - the sub-record to add
      • addAll

        protected void addAll​(List<R> subRecords)
        Adds all sub-records in a collection.
        Parameters:
        subRecords - the sub-records to add
      • remove

        protected void remove​(int index)
        Removes a sub-record at a given index.
        Parameters:
        index - the index of the sub-record to remove
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • readObject

        public abstract void readObject​(InputStream inputStream)
                                 throws IOException
        Reads this value from a stream.
        Parameters:
        inputStream - the stream to read from
        Throws:
        IOException - on error reading from the stream