Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to name interfaces that does the same thing but have differnet signatures in methods?

meandmycodeSep 23 2013 — edited Sep 23 2013

Hi,

I have a couple of classes, units, that can be restarted  ( thus implement a Restartable interface).

The problem I have is that we have two ( currently) sort of restarts:

void restart()  

void restart (int state);

And it is not so that the restart ()/restart(int) is used for only one type of unit. They mix units.

So I need two separate interfaces but I don't know how to name them since they both are describing the unit being restartable.

The only thing I can come up with is Restartable and Restartable2 but it will not tell user which one to use.

Any ideas?

//mike

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 21 2013
Added on Sep 23 2013
1 comment
326 views