¡@

Home 

java Programming Glossary: icomparable

How can I make an interface instance method accept arguments of the same class only, really?

http://stackoverflow.com/questions/18553621/how-can-i-make-an-interface-instance-method-accept-arguments-of-the-same-class-o

discussion proposes the following idiom public interface IComparable T extends IComparable T int compare T t which then allows public.. the following idiom public interface IComparable T extends IComparable T int compare T t which then allows public class Foo implements.. compare T t which then allows public class Foo implements IComparable Foo public int compare Foo foo return 0 However this idiom..