Methods Summary |
---|
protected void | demoComparator()Demonstrate sorting on comparator.
SortedSet people = new TreeSet(new TaxIdComparator());
// .. add people to the set.
people.size(); // supress eclipse warning.
|
protected void | markPreferredCustomer(java.lang.String someCustomer)__UNDOCUMENTED__
Set set = new HashSet();
// ... add items to the set.
String element = null;
Iterator iter = set.iterator();
while (iter.hasNext()) {
element = (String)iter.next();
// ... perfomr some logic
if (element.equals(someCustomer)) {
set.add(new String("p->" + element));
set.remove(element);
}
}
|
protected java.util.HashSet | someBadMethod()A bad interface usage.
return this.someSet;
|
protected java.util.Set | someMethod()A good interface usage.
return this.someSet;
|
protected java.util.Set | someOtherMethod()A good interface usage.
return this.someOtherSet;
|