Forum Stats

  • 3,838,465 Users
  • 2,262,367 Discussions
  • 7,900,657 Comments

Discussions

relatable interface in java

870171
870171 Member Posts: 10
hi;

i want to confrim one thing that is there any predefined interface present in java that is predefined by developers
called "Relatable".

i think it is a predefined interface provided by developers of java. and it is used for compare the size of objects.
if it is then please explain it.

regards
pardeep jangra
Tagged:

Answers

  • 796440
    796440 Member Posts: 19,179 Gold Trophy
    edited Jun 21, 2011 10:14PM
    No, there is no such thing. You could confirm this for yourself quite easily just by looking at the javadocs.
  • 796440
    796440 Member Posts: 19,179 Gold Trophy
    Additionally, there's no need for a distinct interface for comparing the size of objects. We already have Comparable and Comparator for comparing any objects you want to compare.
  • 868050
    868050 Member Posts: 18
    I there is know word relatable. You have to check Java docs.
  • YoungWinston
    YoungWinston Member Posts: 4,310
    edited Jun 22, 2011 8:13AM
    867168 wrote:
    i think it is a predefined interface provided by developers of java. and it is used for compare the size of objects.
    If there were such an animal, I suspect it would have been given a much better name. "Relatable" means almost the same thing in English as "Comparable"; and there's already one of those.

    Winston
  • EJP
    EJP Member Posts: 32,920 Gold Crown
    edited Jun 22, 2011 8:22AM
    I think it is a predefined interface provided by developers of java
    You are mistaken. Just thinking it doesn't make it so.
    I there is know word relatable.
    So?
    You have to check Java docs.
    Check them yourself.

    There is no such interface in the JDK. If you have proof to the contrary please provide it.To assist you in your pointless endeavour, here is the index for 'R'.
This discussion has been closed.