package edu.stanford.peer.rbtm.util; import java.util.*; /** A set that typically contains just one member, but may contain more than one. Using SmallSet instead of HashSet could avoid the cost of creating lots of HashSet when it is not necessary. The current implementation simply extends HashSet. */ public class SmallSet extends HashSet { Object o; public SmallSet(Object o) { super(); add(o); } }