Code example for HashSet

Methods: size, toArray

0
		return set.add(req); 
	} 
 
	@Override 
	public synchronized SendableRequest[] listRequests(ObjectContainer container) { 
		return set.toArray(new SendableRequest[set.size()]); 
	} 
 
	@Override 
	public synchronized boolean removeRequest(SendableRequest req, ObjectContainer container) { 
		return set.remove(req); 
	} 
 
	@Override 
	public void removeFrom(ObjectContainer container) { 
		throw new UnsupportedOperationException(); 
	} 
	 
	public boolean objectCanNew(ObjectContainer container) { 
		Logger.error(this, "Not storing TransientSendableRequestSet in database", new Exception("error")); 
		return false;