public int size() { return map.size(); }
public int size() { return map.size(); }
public int size() { return map.size(); }
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeObject(map.comparator()); out.writeInt(map.size()); for (Iterator itr = map.keySet().iterator(); itr.hasNext(); ) { out.writeObject(itr.next()); } }
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeObject(map.comparator()); out.writeInt(map.size()); for (Iterator itr = map.keySet().iterator(); itr.hasNext(); ) { out.writeObject(itr.next()); } }
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeObject(map.comparator()); out.writeInt(map.size()); for (Iterator itr = map.keySet().iterator(); itr.hasNext(); ) { out.writeObject(itr.next()); } }
public boolean addAll(Collection c) { if (map.size() == 0 && c.size() > 0 && c instanceof SortedSet && map instanceof TreeMap && eq(((SortedSet)c).comparator(), this.comparator())) { ((TreeMap)map).buildFromSorted(new MapIterator(c.iterator()), c.size()); return true; } else { return super.addAll(c); } }
public boolean addAll(Collection c) { if (map.size() == 0 && c.size() > 0 && c instanceof SortedSet && map instanceof TreeMap && eq(((SortedSet)c).comparator(), this.comparator())) { ((TreeMap)map).buildFromSorted(new MapIterator(c.iterator()), c.size()); return true; } else { return super.addAll(c); } }
public boolean addAll(Collection c) { if (map.size() == 0 && c.size() > 0 && c instanceof SortedSet && map instanceof TreeMap && eq(((SortedSet)c).comparator(), this.comparator())) { ((TreeMap)map).buildFromSorted(new MapIterator(c.iterator()), c.size()); return true; } else { return super.addAll(c); } }