BAEL-4254 JavaDoc method reference example classes
This commit is contained in:
parent
07511d76c1
commit
b75e06c175
|
@ -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() {
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.baeldung.vehicle;
|
||||
|
||||
public class Vehicle {
|
||||
|
||||
public Vehicle() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue