default equals again, sorry
John Rose
john.r.rose at oracle.com
Thu Jan 23 14:03:48 PST 2014
On Jan 23, 2014, at 1:02 PM, "Jose" <jgetino at telefonica.net> wrote:
> interface Point(){
> int x();
> int y();
> static Point of(int x, int y) {
> return new Point() {
> public int x() {
> return x;
> }
> public int y() {
> return y;
> }
+ public boolean equals(Object x) { return defaultEquals(x); }
+ public int hashCode() { return defaultHashCode(); }
> };
> }
More information about the lambda-dev
mailing list