/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(KType key) { return map.containsKey(key); }
transitionList = new ObjectArrayList<>(); if (transitions.containsKey(node)) { return false;
@Override public boolean containsKey(KType key) { return map.containsKey(key); }
/** * Return true if all keys of some other container exist in this container. * Equality comparison is performed with this object's {@link #equals(Object, Object)} * method. * Values are compared using {@link Objects#equals(Object)} method. */ protected boolean equalElements(ObjectObjectHashMap<?, ?> other) { if (other.size() != size()) { return false; } for (ObjectObjectCursor<?, ?> c : other) { KType key = (KType) 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(KType 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(KType 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(KType key) { return map.containsKey(key); }
@Override public boolean containsKey(KType 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(KType key) { return map.containsKey(key); }
@Override public final synchronized boolean hasInContext(Object key) { return context != null && context.containsKey(key); }
/** * Returns <code>true</code> if this container has an association to a value for * the given key. */ public boolean containsKey(KType key) { return map.containsKey(key); }
@Override public boolean containsKey(KType key) { return map.containsKey(key); }
@Override public boolean containsKey(KType key) { return map.containsKey(key); }
@Override public boolean containsKey(KType key) { return map.containsKey(key); }
@Override public boolean containsKey(KType 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(KType key, VType value) { if (!containsKey(key)) { put(key, value); return true; } else { return false; } }
for (Term term : terms) { assert term.field() != null : "field is null"; if (!fieldStatistics.containsKey(term.field())) { final CollectionStatistics collectionStatistics = context.searcher().collectionStatistics(term.field()); fieldStatistics.put(term.field(), collectionStatistics);
/** * Return true if all keys of some other container exist in this container. * Equality comparison is performed with this object's {@link #equals(Object, Object)} * method. * Values are compared using {@link Objects#equals(Object)} method. */ protected boolean equalElements(ObjectObjectHashMap<?, ?> other) { if (other.size() != size()) { return false; } for (ObjectObjectCursor<?, ?> c : other) { KType key = (KType) c.key; if (!containsKey(key) || !java.util.Objects.equals(get(key), c.value)) { return false; } } return true; }
assert !lEntry.fieldStatistics().containsKey(null); final Object[] keys = lEntry.fieldStatistics().keys; final Object[] values = lEntry.fieldStatistics().values;
for (Term term : terms) { assert term.field() != null : "field is null"; if (!fieldStatistics.containsKey(term.field())) { final CollectionStatistics collectionStatistics = context.searcher().collectionStatistics(term.field()); fieldStatistics.put(term.field(), collectionStatistics);