public boolean add(Object o) { return myMap.put(o, OBJECT) == null; }
public boolean add(Object o) { return myMap.put(o, OBJECT) == null; }
public boolean add(Object o) { return myMap.put(o, OBJECT) == null; }
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int numBuckets = s.readInt(); myTable = new TableEntry[numBuckets]; // Read in size (number of Mappings) int size = s.readInt(); // Read the keys and values, and put the mappings in the HashMap for (int i=0; i < size; i++) { Object key = s.readObject(); Object value = s.readObject(); put(key, value); } }
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int numBuckets = s.readInt(); myTable = new TableEntry[numBuckets]; // Read in size (number of Mappings) int size = s.readInt(); // Read the keys and values, and put the mappings in the HashMap for (int i=0; i < size; i++) { Object key = s.readObject(); Object value = s.readObject(); put(key, value); } }
private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int numBuckets = s.readInt(); myTable = new TableEntry[numBuckets]; // Read in size (number of Mappings) int size = s.readInt(); // Read the keys and values, and put the mappings in the HashMap for (int i=0; i < size; i++) { Object key = s.readObject(); Object value = s.readObject(); put(key, value); } }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { myMap = new SVNHashMap(); int size = s.readInt(); for (int i = 0; i < size; i++) { Object o = s.readObject(); myMap.put(o, OBJECT); } } }
public void addOldExternal(File path, String oldValue) { if (oldExternals == null) { oldExternals = new SVNHashMap(); } oldExternals.put(path, oldValue); }
public void addDepth(File localAbsPath, SVNDepth depth) { if (depths == null) { depths = new SVNHashMap(); } depths.put(localAbsPath, depth); }
@Override public Object put(Object key, Object value) { key = getObjectFromPool(key); return super.put(key, value); }
public void addNewExternal(File path, String newValue) { if (newExternals == null) { newExternals = new SVNHashMap(); } newExternals.put(path, newValue); }
public void putAll(Map t) { if (t == null || t.isEmpty()) { return; } if (myEntryCount + t.size() >= myTable.length) { resize((myEntryCount + t.size())*2); } for (Iterator entries = t.entrySet().iterator(); entries.hasNext();) { Map.Entry entry = (Map.Entry) entries.next(); put(entry.getKey(), entry.getValue()); } }
public void putAll(Map t) { if (t == null || t.isEmpty()) { return; } if (myEntryCount + t.size() >= myTable.length) { resize((myEntryCount + t.size())*2); } for (Iterator entries = t.entrySet().iterator(); entries.hasNext();) { Map.Entry entry = (Map.Entry) entries.next(); put(entry.getKey(), entry.getValue()); } }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { myMap = new SVNHashMap(); int size = s.readInt(); for (int i = 0; i < size; i++) { Object o = s.readObject(); myMap.put(o, OBJECT); } } }
public void putAll(Map t) { if (t == null || t.isEmpty()) { return; } if (myEntryCount + t.size() >= myTable.length) { resize((myEntryCount + t.size())*2); } for (Iterator entries = t.entrySet().iterator(); entries.hasNext();) { Map.Entry entry = (Map.Entry) entries.next(); put(entry.getKey(), entry.getValue()); } }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { myMap = new SVNHashMap(); int size = s.readInt(); for (int i = 0; i < size; i++) { Object o = s.readObject(); myMap.put(o, OBJECT); } } }
private void storeServerCertificate(String realm, String data, int failures) throws SVNException { myAuthDirectory.mkdirs(); File file = new File(myAuthDirectory, SVNFileUtil.computeChecksum(realm)); SVNHashMap map = new SVNHashMap(); map.put("ascii_cert", data); map.put("svn:realmstring", realm); map.put("failures", Integer.toString(failures)); SVNFileUtil.deleteFile(file); File tmpFile = SVNFileUtil.createUniqueFile(myAuthDirectory, "auth", ".tmp", true); try { SVNWCProperties.setProperties(SVNProperties.wrap(map), file, tmpFile, SVNWCProperties.SVN_HASH_TERMINATOR); } finally { SVNFileUtil.deleteFile(tmpFile); } }
private void storeServerCertificate(String realm, String data, int failures) throws SVNException { myAuthDirectory.mkdirs(); File file = new File(myAuthDirectory, SVNFileUtil.computeChecksum(realm)); SVNHashMap map = new SVNHashMap(); map.put("ascii_cert", data); map.put("svn:realmstring", realm); map.put("failures", Integer.toString(failures)); SVNFileUtil.deleteFile(file); File tmpFile = SVNFileUtil.createUniqueFile(myAuthDirectory, "auth", ".tmp", true); try { SVNWCProperties.setProperties(SVNProperties.wrap(map), file, tmpFile, SVNWCProperties.SVN_HASH_TERMINATOR); } finally { SVNFileUtil.deleteFile(tmpFile); } }
private void storeServerCertificate(String realm, String data, int failures) throws SVNException { myAuthDirectory.mkdirs(); File file = new File(myAuthDirectory, SVNFileUtil.computeChecksum(realm)); SVNHashMap map = new SVNHashMap(); map.put("ascii_cert", data); map.put("svn:realmstring", realm); map.put("failures", Integer.toString(failures)); SVNFileUtil.deleteFile(file); File tmpFile = SVNFileUtil.createUniqueFile(myAuthDirectory, "auth", ".tmp", true); try { SVNWCProperties.setProperties(SVNProperties.wrap(map), file, tmpFile, SVNWCProperties.SVN_HASH_TERMINATOR); } finally { SVNFileUtil.deleteFile(tmpFile); } }