23 lines
279 B
Java
23 lines
279 B
Java
/**
|
|
* An interface for persons that have a name and an id.
|
|
*
|
|
* @author Marcus
|
|
*/
|
|
public interface Person {
|
|
|
|
/**
|
|
* The id of the person.
|
|
*
|
|
* @return The id.
|
|
*/
|
|
long getId();
|
|
|
|
/**
|
|
* The name of the person.
|
|
*
|
|
* @return The name.
|
|
*/
|
|
String getName();
|
|
|
|
}
|