Bruce Eckel 49edcc8b17 reorg
2015-06-15 17:47:35 -07:00

20 lines
459 B
Java

//: patterns/doubledispatch/DDPaper.java
// ©2015 MindView LLC: see Copyright.txt
// Paper for double dispatching.
package patterns.doubledispatch;
import patterns.trash.*;
public class DDPaper extends Paper
implements TypedBinMember {
public DDPaper(double wt) { super(wt); }
@Override
public boolean addToBin(TypedBin[] tb) {
for(TypedBin tb1 : tb) {
if(tb1.add(this)) {
return true;
}
}
return false;
}
} ///:~