@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {@link Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override protected boolean equalElements(ObjectObjectHashMap<?, ?> other) { if (other.size() != size()) { return false; } Iterator<? extends ObjectObjectCursor<?, ?>> i = other.iterator(); while (i.hasNext()) { ObjectObjectCursor<?, ?> c = i.next(); KType key = (KType) c.key; if (!containsKey(key) || !equals(get(key), c.value)) { // Compare values using the same function as keys. return false; } } return true; } /* */
@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {@link Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {@link Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {@link Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
/** * Returns a cursor over the entries (key-value pairs) in this map. The iterator is * implemented as a cursor and it returns <b>the same cursor instance</b> on every * call to {@link Iterator#next()}. To read the current key and value use the cursor's * public fields. An example is shown below. * <pre> * for (IntShortCursor c : intShortMap) * { * System.out.println("index=" + c.index * + " key=" + c.key * + " value=" + c.value); * } * </pre> * <p> * The <code>index</code> field inside the cursor gives the internal index inside * the container's implementation. The interpretation of this index depends on * to the container. */ @Override public Iterator<ObjectObjectCursor<KType, VType>> iterator() { return map.iterator(); }
@Override protected boolean equalElements(ObjectObjectHashMap<?, ?> other) { if (other.size() != size()) { return false; } Iterator<? extends ObjectObjectCursor<?, ?>> i = other.iterator(); while (i.hasNext()) { ObjectObjectCursor<?, ?> c = i.next(); KType key = (KType) c.key; if (!containsKey(key) || !equals(get(key), c.value)) { // Compare values using the same function as keys. return false; } } return true; } /* */