Package org.jmrtd.lds

Class AbstractListInfo<R extends java.io.Serializable>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void add​(R subRecord)
      Adds a sub-record to this list.
      protected void addAll​(java.util.List<R> subRecords)
      Adds all sub-records in a collection.
      boolean equals​(java.lang.Object other)  
      protected java.util.List<R> getSubRecords()
      Returns the sub-records of this list.
      int hashCode()  
      abstract void readObject​(java.io.InputStream inputStream)
      Reads this value from a stream.
      protected void remove​(int index)
      Removes a sub-record at a given index.
      abstract void writeObject​(java.io.OutputStream outputStream)
      Writes this value to a stream.
      • Methods inherited from class java.lang.Object

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

      • AbstractListInfo

        public AbstractListInfo()
    • Method Detail

      • getSubRecords

        protected java.util.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​(java.util.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
      • equals

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

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

        public abstract void writeObject​(java.io.OutputStream outputStream)
                                  throws java.io.IOException
        Writes this value to a stream.
        Specified by:
        writeObject in class AbstractLDSInfo
        Parameters:
        outputStream - the stream to write to
        Throws:
        java.io.IOException - on error writing to the stream
      • readObject

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