FileDocCategorySizeDatePackage
SomeClass.javaAPI DocExample2213Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.collections

SomeClass

public class SomeClass extends Object
Class used to synax proof demo code from the HCJ Collections chapter. There is really no re-usable stuff in here. I merely use this class in order to make sure my syntax is correct in snippets.
author
Robert (Kraythe) Simmons jr.

Fields Summary
HashSet
someSet
A set.
Set
someOtherSet
A set.
Constructors Summary
Methods Summary
protected voiddemoComparator()
Demonstrate sorting on comparator.


	     	 
	   
		SortedSet people = new TreeSet(new TaxIdComparator());

		// .. add people to the set.
		people.size();  // supress eclipse warning.
	
protected voidmarkPreferredCustomer(java.lang.String someCustomer)
__UNDOCUMENTED__

param
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.HashSetsomeBadMethod()
A bad interface usage.

return
NA

		return this.someSet;
	
protected java.util.SetsomeMethod()
A good interface usage.

return
NA

		return this.someSet;
	
protected java.util.SetsomeOtherMethod()
A good interface usage.

return
NA

		return this.someOtherSet;