BAEL-4254 JavaDoc method reference example classes

This commit is contained in:
Karthick S 2021-06-11 19:33:04 +05:30
parent 07511d76c1
commit b75e06c175
4 changed files with 25 additions and 2 deletions

View File

@ -1,8 +1,9 @@
package com.baeldung.javadocmemberreference;
import com.baeldung.sealed.records.Car;
import com.baeldung.vehicle.Car;
public class Person {
Person() {
}
@ -33,7 +34,7 @@ public class Person {
}
/**
* Also consider checking {@link com.baeldung.sealed.classes.Vehicle#Vehicle() Vehicle} constructor to initialize vehicle object.
* Also consider checking {@link com.baeldung.vehicle.Vehicle#Vehicle() Vehicle} constructor to initialize vehicle object.
*/
public void goToWork() {

View File

@ -0,0 +1,14 @@
package com.baeldung.vehicle;
public class Car {
public Car() {
}
public static int getNumberOfSeats() {
int availableSeats = 0;
// available seats calculation logic
return availableSeats;
}
}

View File

@ -0,0 +1,8 @@
package com.baeldung.vehicle;
public class Vehicle {
public Vehicle() {
}
}