Last active
December 20, 2015 13:39
-
-
Save banterCZ/6140351 to your computer and use it in GitHub Desktop.
inherit javadoc, sample for blogpost http://blog.zvestov.cz/item/136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Sample { | |
| /** | |
| * Some javadoc. | |
| */ | |
| void doSomething(); | |
| /** | |
| * Another javadoc. | |
| */ | |
| void doSomethingElse(); | |
| /** | |
| * Different javadoc. | |
| */ | |
| void doNothing(); | |
| /** | |
| * This javadoc will be replaced. | |
| */ | |
| void replace(); | |
| /** | |
| * This javadoc will be extended. | |
| */ | |
| void add(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SampleImpl implements Sample { | |
| @Override | |
| public void doSomething() { | |
| //TODO | |
| } | |
| /** | |
| * {@inheritDoc} | |
| */ | |
| @Override | |
| public void doSomethingElse() { | |
| //TODO | |
| } | |
| /* | |
| * (non-Javadoc) | |
| * | |
| * @see Sample#doNothing() | |
| */ | |
| @Override | |
| public void doNothing() { | |
| //TODO | |
| } | |
| /** | |
| * This replaces the original javadoc. | |
| */ | |
| @Override | |
| public void replace() { | |
| //TODO | |
| } | |
| /** | |
| * Some additional comments. {@inheritDoc} | |
| */ | |
| @Override | |
| public void add() { | |
| //TODO | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment