/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
/** * Return true if all keys of some other container exist in this container. * Values are compared using {@link Objects#equals(Object)} method. */ protected boolean equalElements(IntObjectHashMap<?> other) { if (other.size() != size()) { return false; } for (IntObjectCursor<?> c : other) { int key = c.key; if (!containsKey(key) || !java.util.Objects.equals(get(key), c.value)) { return false; } } return true; }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(int key) { return map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
public boolean containsKey(int key) { return g_map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
@Override public boolean containsKey(int key) { return map.containsKey(key); }
/** * <a href="http://trove4j.sourceforge.net">Trove</a>-inspired API method. An equivalent * of the following code: * <pre> * if (!map.containsKey(key)) map.put(value); * </pre> * * @param key The key of the value to check. * @param value The value to put if <code>key</code> does not exist. * @return <code>true</code> if <code>key</code> did not exist and <code>value</code> * was placed in the map. */ public boolean putIfAbsent(int key, VType value) { if (!containsKey(key)) { put(key, value); return true; } else { return false; } }
/** * Return true if all keys of some other container exist in this container. * Values are compared using {@link Objects#equals(Object)} method. */ protected boolean equalElements(IntObjectHashMap<?> other) { if (other.size() != size()) { return false; } for (IntObjectCursor<?> c : other) { int key = c.key; if (!containsKey(key) || !java.util.Objects.equals(get(key), c.value)) { return false; } } return true; }