Prev: Call for Papers: International Conference on Internet and Multimedia Technologies ICIMT 2010
Next: Is there a 'Filter' or 'Predicate' interface anywhere in theJDK?
From: Andreas Leitgeb on 29 Jun 2010 03:05 Lew <lew(a)lewscanon.com> wrote: >>>> And of course, it goes without saying that: >>>> Hand.getBird().equals(Collections.asList(Bush.getBird(), Bush.getBird())) >>> That works as a pun, but as Java code would fail to yield 'true' under >>> conformant implementations of 'equals()'. >> I forgot to mention that Bird implements List<Bird>. Weird, but there you >> go. > [...] Besides, it's not true that a bird in > the hand is *equal to* two in the bush, it's that a bird in the hand > is *worth* two in the bush. The German variant of that proverb would amount to: hand.getTheSparrow().preferenceLevel() > roof.getTheDove().preferenceLevel() PS: I wouldn't trade a bird in my hand even for three birds in the bush... |