Code example for HashSet

Methods: add, clear

0
 
//		itsSet.setSize(2); 
	} 
 
	public final HashSet<?> execute() {//GraphObject 
		this.itsSet.clear(); 
		this.itsSet.add(((Arc) getSourceInstance(0)).getSource()); 
		this.itsSet.add(((Arc) getSourceInstance(0)).getTarget()); 
		return this.itsSet; 
	} 
	 
	public final int getSize() { 
		return 2; 
	} 
 
	/** 
	 * Return the name of this class. 
	 */ 
	public final String getKind() { 
		return "Query_SourceTarget"; 
	}