Code example for HashSet

Methods: isEmpty

0
	public IDException setLoc(File cfgLoc){
		this.cfgLocation=cfgLoc;
		return this;
	} 
	public boolean IsConflicted(){ 
		return (!ConflictedID.isEmpty());
	} 
	public void add(int ID){
		this.ConflictedID.add(ID);
	} 
	public String getMessage(){
		String locPath="/config/mod_Fossil.cfg";
		try { 
			locPath=cfgLocation.getCanonicalPath();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		StringBuilder result=new StringBuilder().append("[mod_Fossil Error]ID conflicted at ID:\n");
		Iterator it=ConflictedID.iterator();
		while (it.hasNext()) result.append(it.next()).append(' ');