Package org.jmrtd.lds
Class AbstractListInfo<R extends Serializable>
- java.lang.Object
-
- org.jmrtd.lds.AbstractLDSInfo
-
- org.jmrtd.lds.AbstractListInfo<R>
-
- Type Parameters:
R
- the type of the elements
- All Implemented Interfaces:
Serializable
,LDSElement
- Direct Known Subclasses:
FaceInfo
,FingerInfo
,IrisBiometricSubtypeInfo
,IrisInfo
public abstract class AbstractListInfo<R extends Serializable> extends AbstractLDSInfo
Abstract base class for several data structures used in the LDS containing a list of elements.- Version:
- $Revision: 1765 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractListInfo()
-
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(List<R> subRecords)
Adds all sub-records in a collection.boolean
equals(Object other)
protected List<R>
getSubRecords()
Returns the sub-records of this list.int
hashCode()
abstract void
readObject(InputStream inputStream)
Reads this value from a stream.protected void
remove(int index)
Removes a sub-record at a given index.abstract void
writeObject(OutputStream outputStream)
Writes this value to a stream.-
Methods inherited from class org.jmrtd.lds.AbstractLDSInfo
getEncoded
-
-
-
-
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
-
writeObject
public abstract void writeObject(OutputStream outputStream) throws IOException
Writes this value to a stream.- Specified by:
writeObject
in classAbstractLDSInfo
- Parameters:
outputStream
- the stream to write to- Throws:
IOException
- on error writing to the stream
-
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
-
-