/** * Returns true if this {@code Hashtable} contains the specified object as * the value of at least one of the key/value pairs. * * @param value * the object to look for as a value in this {@code Hashtable}. * @return {@code true} if object is a value in this {@code Hashtable}, * {@code false} otherwise. * @see #containsKey * @see java.lang.Object#equals */ public boolean contains(Object value) { return containsValue(value); }
@Override public boolean containsValue(final Object value) { if ((value == null) && !nulls.isEmpty()) { return true; } else if (value == null) { return false; } return map.containsValue(value); }
public boolean containsValue(Object value) { return project.getProperties().containsValue(value); }
public void hashtablesCantContainNull(Hashtable h) { h.put("a", null); h.put(null, "a"); h.get(null); h.contains(null); h.containsKey(null); h.containsValue(null); h.remove(null); } }
@ExpectWarning("GC_UNRELATED_TYPES") public boolean testContainsValueHashtable(String s) { return hashtable.containsValue(s); }
@NoWarning("GC_UNRELATED_TYPES") public boolean testContainsValueHashtable(Integer i) { return hashtable.containsValue(i); }
/** * Removes the mapping associated to the specified prefix. * * @param prefix The prefix which mapping should be removed. */ private void removeIfNeeded(String prefix) { // remove the previous mapping to the prefix if (this.prefixMapping.containsValue(prefix)) { Object key = null; for (Enumeration<String> e = this.prefixMapping.keys(); e.hasMoreElements();) { key = e.nextElement(); if (this.prefixMapping.get(key).equals(prefix)) { break; } } this.prefixMapping.remove(key); // we know key should have a value } }
List<Unit> handlerPreds = this.unitToPreds.get(handler); for (Iterator<Unit> preditr = handlerPreds.iterator(); preditr.hasNext();) { if (try2nop.containsValue(preditr.next())) { continue AddExceptionalEdge;
(_prefixMapping.containsValue(Constants.XSLT_URI) == false)) _rootNamespaceDef = false; else
@Override public boolean containsValue(final Object value) { if ((value == null) && !nulls.isEmpty()) { return true; } else if (value == null) { return false; } return map.containsValue(value); }
/** * {@inheritDoc} */ public boolean containsValue(final Object value) { return _map.containsValue(value); }
/** * Returns true if the specified value is contained in this Map */ @Override public boolean containsValue(Object value) { return table.containsValue(value); }
/** * Checks whether this XCAS file has the specified <code>XcasAnnotation</code>. * If there is an <code>XcasAnnotation</code> object that has exactly the same * type, attributes, and references, return <code>true</code>. * @param a An <code>XcasAnnotation</code> to check. * @return <code>true</code> if there is one <code>XcasAnnotation</code> equals * the specified one, <code>false</code> otherwise. * @see XcasAnnotation#equals(Object) */ public boolean hasAnnotation (XcasAnnotation a) { return annotations.containsValue(a); }
/** * @see java.util.Hashtable#containsValue(java.lang.Object) */ @Override public boolean containsValue(Object value) { return this.getDelegate().containsValue(value); }
/** * @see java.util.Hashtable#containsValue(java.lang.Object) */ @Override public boolean containsValue(Object value) { return this.getDelegate().containsValue(value); }
public boolean containsValue(Object value) { if (tags == null) { tags = new Hashtable<String,Object>(); copyToHashtable(); } return tags.containsValue(value); }
/** * @see java.util.Hashtable#containsValue(java.lang.Object) */ public boolean containsValue(Object value) { return this.getDelegate().containsValue(value); }
public Attr removeAttributeNode( Attr oldAttr ) throws DOMException { if (!_attributes.containsValue( oldAttr)) throw new DOMException( DOMException.NOT_FOUND_ERR, "Specified attribute is not defined for this element" ); AttrImpl removedAttr = (AttrImpl) _attributes.remove( oldAttr.getName() ); if (removedAttr != null) removedAttr.setOwnerElement( null ); return removedAttr; }
public Attr removeAttributeNode( Attr oldAttr ) throws DOMException { if (!_attributes.containsValue( oldAttr)) throw new DOMException( DOMException.NOT_FOUND_ERR, "Specified attribute is not defined for this element" ); AttrImpl removedAttr = (AttrImpl) _attributes.remove( oldAttr.getName() ); if (removedAttr != null) removedAttr.setOwnerElement( null ); return removedAttr; }
@Test(expected = ReactiveAuditException.class) public void containsValue() { ReactiveAudit.off.commit(); Hashtable hash=new Hashtable(); TestTools.strict.commit(); hash.containsValue(null); } @Test(expected = ReactiveAuditException.class)