// Textbook fragment 11.10 /** Class specializing the generic merge template to intersect two sets */ public class IntersectMerge extends Merge { protected void aIsLess(E a, PositionList C) { } protected void bothAreEqual(E a, E b, PositionList C) { C.addLast(a); // add a (but not its duplicate b) } protected void bIsLess(E b, PositionList C) { } }