Code example for Cache

Methods: get

0
	} 
 
	public int getAtom(final String atomName) {
 
		try { 
			return this.atomCodeNames.get(	atomName,
											new Callable<Integer>() {
												@Override 
												public Integer call() {
													final Integer atomId = internAtom(atomName);
													XAtomCache.this.atomNameCodes.put(	atomId,
																						atomName);
													return atomId;
												} 
											}); 
		} catch (final ExecutionException e) {
			throw new RuntimeException(e);
		} 
	}