Skip to content

Commit

Permalink
Example implementation of exampleInstance() per message to Dan.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiniry committed Aug 14, 2017
1 parent 88b74c1 commit 3cbadd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@ public boolean equals(final Object the_other) {
public int hashCode() {
return toString().hashCode();
}

@Override
protected Elector exampleInstance() {
return new Elector("John", "Doe", "Free and Fair Party");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ protected AbstractEntity() {
// default values
}

/**
* An example instance of this entity.
*/
protected abstract AbstractEntity exampleInstance();

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 3cbadd3

Please sign in to comment.