private void write_codebase(String str, int pos) { if (codebaseCache != null && codebaseCache.containsKey(str)) { writeIndirection(INDIRECTION_TAG, codebaseCache.getVal(str)); } else { write_string(str); if (codebaseCache == null) codebaseCache = new CacheTable(orb, true); codebaseCache.put(str, pos); } }
private void write_codebase(String str, int pos) { if (codebaseCache != null && codebaseCache.containsKey(str)) { writeIndirection(INDIRECTION_TAG, codebaseCache.getVal(str)); } else { write_string(str); if (codebaseCache == null) codebaseCache = new CacheTable(orb, true); codebaseCache.put(str, pos); } }
private final void write_repositoryId(String id) { // Use an indirection if available if (repositoryIdCache != null && repositoryIdCache.containsKey(id)) { writeIndirection(INDIRECTION_TAG, repositoryIdCache.getVal(id)); return; } // Write it as a string. Note that we have already done the special case conversion of non-Latin-1 characters to // escaped Latin-1 sequences in RepositoryId. // It's not a good idea to cache them now that we can have multiple code sets. int indirection = writeString(id); // Add indirection for id to indirection table if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, true); repositoryIdCache.put(id, indirection); }
private final void write_repositoryId(String id) { // Use an indirection if available if (repositoryIdCache != null && repositoryIdCache.containsKey(id)) { writeIndirection(INDIRECTION_TAG, repositoryIdCache.getVal(id)); return; } // Write it as a string. Note that we have already done the special case conversion of non-Latin-1 characters to // escaped Latin-1 sequences in RepositoryId. // It's not a good idea to cache them now that we can have multiple code sets. int indirection = writeString(id); // Add indirection for id to indirection table if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, true); repositoryIdCache.put(id, indirection); }
if (valueCache != null && valueCache.containsKey(object))
if (valueCache != null && valueCache.containsKey(object))
if (valueCache != null && valueCache.containsKey(object))
if (valueCache != null && valueCache.containsKey(object))
if ((valueCache != null) && valueCache.containsKey(object))
if ((valueCache != null) && valueCache.containsKey(object))