/** * Constructs a new map containing the same mappings and using the * same ordering as the specified sorted map. * * @param m the sorted map whose mappings are to be placed in this * map, and whose comparator is to be used to sort this map * @throws NullPointerException if the specified sorted map or any of * its keys or values are null */ public ConcurrentSkipListMap(SortedMap m) { this.comparator = m.comparator(); initialize(); buildFromSorted(m); }
/** * Constructs a new map containing the same mappings and using the * same ordering as the specified sorted map. * * @param m the sorted map whose mappings are to be placed in this * map, and whose comparator is to be used to sort this map * @throws NullPointerException if the specified sorted map or any of * its keys or values are null */ public ConcurrentSkipListMap(SortedMap m) { this.comparator = m.comparator(); initialize(); buildFromSorted(m); }
/** * Constructs a new map containing the same mappings and using the * same ordering as the specified sorted map. * * @param m the sorted map whose mappings are to be placed in this * map, and whose comparator is to be used to sort this map * @throws NullPointerException if the specified sorted map or any of * its keys or values are null */ public ConcurrentSkipListMap(SortedMap m) { this.comparator = m.comparator(); initialize(); buildFromSorted(m); }
/** * Returns a shallow copy of this <tt>ConcurrentSkipListMap</tt> * instance. (The keys and values themselves are not cloned.) * * @return a shallow copy of this map */ public Object clone() { ConcurrentSkipListMap clone = null; try { clone = (ConcurrentSkipListMap) super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } clone.initialize(); clone.buildFromSorted(this); return clone; }
/** * Returns a shallow copy of this <tt>ConcurrentSkipListMap</tt> * instance. (The keys and values themselves are not cloned.) * * @return a shallow copy of this map */ public Object clone() { ConcurrentSkipListMap clone = null; try { clone = (ConcurrentSkipListMap) super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } clone.initialize(); clone.buildFromSorted(this); return clone; }
/** * Returns a shallow copy of this <tt>ConcurrentSkipListMap</tt> * instance. (The keys and values themselves are not cloned.) * * @return a shallow copy of this map */ public Object clone() { ConcurrentSkipListMap clone = null; try { clone = (ConcurrentSkipListMap) super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } clone.initialize(); clone.buildFromSorted(this); return clone; }