|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsourceafis.simple.Person
public class Person
Collection of Fingerprint
s belonging to one person.
This class is primarily a way to group multiple Fingerprint
s belonging to one person.
This is very convenient feature when there are multiple fingerprints per person, because
it is possible to match two Person
s directly instead of iterating over their Fingerprint
s.
Id
property is provided as a simple means to bind Person
objects to application-specific
information. If you need more flexibility, inherit from Person
class and add
application-specific fields as necessary.
This class is designed to be easy to serialize in order to be stored in binary format (BLOB)
in application database, binary or XML files, or sent over network. You can either serialize
the whole Person
or serialize individual Fingerprint
s.
Fingerprint
Constructor Summary | |
---|---|
Person()
Creates an empty Person object. |
|
Person(Fingerprint... fingerprints)
Creates new Person object and initializes it with a list of
Fingerprint s. |
Method Summary | |
---|---|
Person |
clone()
Creates deep copy of the Person. |
List<Fingerprint> |
getFingerprints()
Gets list of Fingerprint s belonging to the Person . |
int |
getId()
Gets application-defined ID for the Person. |
void |
setFingerprints(List<Fingerprint> fingerprints)
Sets list of Fingerprint s belonging to the Person . |
void |
setId(int id)
Sets application-defined ID for the Person . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Person()
Person
object.
public Person(Fingerprint... fingerprints)
Person
object and initializes it with a list of
Fingerprint
s.
fingerprints
- Fingerprint
objects to add to the new Person
Method Detail |
---|
public int getId()
setId
for explanation. This method just returns
previously set ID.
setId
setId
public void setId(int id)
Person
.
SourceAFIS doesn't use this ID. It is provided for applications as an
easy means to link Person
objects back to application-specific
data. Applications can store any integer ID in this field, for example
database table key or an array index.
Applications that need to attach more detailed information to the person
should inherit from Person
class and add fields as necessary.
id
- arbitrary application-defined IDgetId
public List<Fingerprint> getFingerprints()
Fingerprint
s belonging to the Person
.
This collection is initially empty. Add Fingerprint
objects
to the returned collection.
setFingerprints
,
Fingerprint
public void setFingerprints(List<Fingerprint> fingerprints)
Fingerprint
s belonging to the Person
.
You can assign the whole collection using this method. Individual
Fingerprint
s can be added to the collection returned from
getFingerprints
.
fingerprints
- new list of Fingerprint
s for this Person
getFingerprints
,
Fingerprint
public Person clone()
Fingerprint
objects contained in this
Person
.
clone
in class Object
Person
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |