Code example for Set

Methods: add, contains, remove

0
	public Enumeration propertyNames() {
		return Collections.enumeration(_names);
	} 
 
	public Object put(Object key, Object value) {
		if (_names.contains(key)) {
			_names.remove(key);
		} 
 
		_names.add(key);
 
		return super.put(key, value);
	} 
 
	public Object remove(Object key) {
		_names.remove(key);
 
		return super.remove(key);
	} 
 
	private Set _names;