Code example for ReentrantReadWriteLock.ReadLock

Methods: lock, unlock

0
	 * @param fqn 
	 * @return 
	 */ 
	public Set<DiagramHandle> get(String fqn) {
		try { 
			readLock.lock();
			Set<DiagramHandle> result = handlesByFQN.get(fqn);
			if (result == null) {
				result = new HashSet<DiagramHandle>();
			} 
 
			return Collections.unmodifiableSet(result);
		} finally { 
			readLock.unlock();
		} 
	} 
 
	/** 
	 * Returns a set of all the FQNs contained in the given diagram. 
	 *