sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/UriCache.java
public void putIfNewElseDelete(String lookupNgMD5, ArrayList<String> builtStrings, String uri) {
		synchronized(this) {
			String key = this.getKey(lookupNgMD5, builtStrings);
		
			String prev = this.uriCache.putIfAbsent(key, uri);
			if (prev != null && !prev.equals(uri)) {
				this.uriCache.remove(key);
				//LocalLogger.logToStdErr("REMOVE: " + key + "," + uri);
				
			} else {
				//LocalLogger.logToStdErr("PUT-2 : " + key + "," + uri);
			}
		}
	}
/** 
	 * Add if URI isn't already there.  If it is already there, delete it instead.
	 * Intended to 
	 * @param lookupNgMD5
	 * @param builtStrings
	 * @param uri
	 */
Add if URI isn't already there.  If it is already there, delete it instead.
Add if URI isn ' t already there . If it is already there delete it instead .
public void putIfNewElseDelete(String lookupNgMD5, ArrayList<String> builtStrings, String uri) {
		synchronized(this) {
			String key = this.getKey(lookupNgMD5, builtStrings);
			String prev = this.uriCache.putIfAbsent(key, uri);
			if (prev != null && !prev.equals(uri)) {
				this.uriCache.remove(key);
			} else {
			}
		}
	}
public void putIfNewElseDelete ( String lookupNgMD5 , ArrayList < String > builtStrings , String uri ) { synchronized ( this ) { String key = this . getKey ( lookupNgMD5 , builtStrings ) ; String prev = this . uriCache . putIfAbsent ( key , uri ) ; if ( prev != null && ! prev . equals ( uri ) ) { this . uriCache . remove ( key ) ; } else { } } }
Add if URI isn't already there.
Add if URI isn ' t already there .
//LocalLogger.logToStdErr("REMOVE: " + key + "," + uri); //LocalLogger.logToStdErr("PUT-2 : " + key + "," + uri);