20 lines
467 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// patterns/doubledispatch/DDAluminum.java
2015-06-15 17:47:35 -07:00
// <20>2015 MindView LLC: see Copyright.txt
// Aluminum for double dispatching.
package patterns.doubledispatch;
import patterns.trash.*;
public class DDAluminum extends Aluminum
implements TypedBinMember {
public DDAluminum(double wt) { super(wt); }
@Override
public boolean addToBin(TypedBin[] tb) {
for(TypedBin tb1 : tb) {
if(tb1.add(this)) {
return true;
}
}
return false;
}
2015-09-07 11:44:36 -06:00
}