Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8566489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:39:58+00:00 2026-06-11T17:39:58+00:00

I have following functional hierarchy which I’m recreating in Java: Diagram | |–Model |

  • 0

I have following functional hierarchy which I’m recreating in Java:

   Diagram
     |
     |--Model
          |
          |--Entity

All those object share some common properties (id, name) and also an reference to parent object in hierarchy. So I have implemented an abstract class:

abstract class DBObject{
   private final int id;
   private final String name;
   private final DBObject parent;

   //constructors, getters, setters here

   /**
    * @return reference to parent object in hierarchy.
    */
    public final getParent(){
       return parent;
    }
}

So far no problem. The thing is, that Diagram has no parent and will always return null. This is ensured by implementation. But I would like to reflect the “parent always null” in Diagram Javadoc.
Is it possible to overload Javadoc, without overriding method? Solution would be to state that in abstract class as a note, but that’s no an answer I’m looking for.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:39:59+00:00Added an answer on June 11, 2026 at 5:39 pm

    How about this?

    /**
    * @return reference to parent object in hierarchy. may be null.
    */
    @Nullable
    public final DBObject getParent(){
       return parent;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following two interfaces, which are not part of an inheritance hierarchy.
I have the following function in a PHP script, which returns and API call:
Suppose I have the following class hierarchy: class A { int foo; virtual ~A()
I have a class hierarchy with the following three classes: template<int pdim > class
In my application, I have the following class hierarchy: class Word { ... }
I have a hierarchy table with the following data : SOURCE TARGET Level ID
I have many large KML data-sets, which are served using a hierarchy of region-based
I have following class hierarchy: class Base { // This class cannot be modified
I have a doctrine class User which is of this hierarchy Doctrine_Record -> BaseUser
I often have to debug Java code which was written so that there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.