/** * @param e entity * @return true if an entity with the same iri as the input exists in the collection */ public synchronized boolean containsReference(K e) { return map.containsKey(e); }
@Override public int removeAll(final byte e) { final boolean hasKey = this.owner.containsKey(e); int result = 0; if (hasKey) { this.owner.remove(e); result = 1; } return result; }
/** * {@inheritDoc} */ @Override public boolean putIfAbsent(final char key, final int value) { if (!containsKey(key)) { put(key, value); return true; } return false; }
/** * Create a new hash map without providing the full generic signature * (constructor shortcut). */ public static ByteIntHashMap newInstance() { return new ByteIntHashMap(); }
/** * {@inheritDoc} */ @Override public int size() { return this.owner.size(); }
/** * {@inheritDoc} */ @Override public int size() { return this.owner.size(); }
/** * {@inheritDoc} */ @Override public int size() { return this.owner.size(); }
/** * Create a new hash map without providing the full generic signature * (constructor shortcut). */ public static CharFloatHashMap newInstance() { return new CharFloatHashMap(); }
/** * {@inheritDoc} */ @Override public int putAll(final ByteLongAssociativeContainer container) { return putAll((Iterable<? extends ByteLongCursor>) container); }
/** * {@inheritDoc} * @return a new ValuesCollection view of the values of this map. */ @Override public ValuesCollection values() { return new ValuesCollection(); }
/** * {@inheritDoc} * @return a new ValuesCollection view of the values of this map. */ @Override public ValuesCollection values() { return new ValuesCollection(); }
/** * {@inheritDoc} */ @Override public int putAll(final ByteFloatAssociativeContainer container) { return putAll((Iterable<? extends ByteFloatCursor>) container); }
/** * {@inheritDoc} * Alias for clear() the whole map. */ @Override public void clear() { this.owner.clear(); }
/** * {@inheritDoc} */ @Override public int size() { return this.owner.size(); }
/** * Create a new hash map without providing the full generic signature * (constructor shortcut). */ public static CharCharHashMap newInstance() { return new CharCharHashMap(); }
/** * {@inheritDoc} * @return a new KeysCollection view of the keys of this map. */ @Override public KeysCollection keys() { return new KeysCollection(); }
/** * {@inheritDoc} */ @Override public int capacity() { return this.owner.capacity(); }
/** * Create a new hash map with initial capacity and load factor control. * (constructor shortcut). */ public static ByteIntHashMap newInstance(final int initialCapacity, final double loadFactor) { return new ByteIntHashMap(initialCapacity, loadFactor); }
/** * {@inheritDoc} */ @Override public int size() { return this.owner.size(); }