BAEL-4254 JavaDoc method reference example classes

This commit is contained in:
Karthick S 2021-05-23 21:08:26 +05:30
parent 45764829f7
commit 748d2022d8
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package com.baeldung.javadocmemberreference;
public class Animal {
public void run() {
}
public void run(String direction) {
}
}

View File

@ -0,0 +1,48 @@
package com.baeldung.javadocmemberreference;
import com.baeldung.sealed.records.Car;
public class Person {
Person() {
}
/**
* Also, check the {@link #move() Move} method for more movement details.
*/
public void walk() {
}
/**
* Check this {@link #move(String) Move} method for direction oriented movement.
*/
public void move() {
}
public void move(String direction) {
}
/**
* Additionally, check this {@link Animal#run(String) Run} method for direction based run.
*/
public void run() {
}
/**
* Also consider checking {@link com.baeldung.sealed.classes.Vehicle#Vehicle()} constructor to initialize vehicle object.
*/
public void goToWork() {
}
/**
* Have a look at {@link Car#getNumberOfSeats() SeatsAvailability} method for checking the available seats needed for driving.
*/
public void drive() {
}
}