/** * checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey(Object key) { //noinspection unchecked return contains(key); }
Iterator<E> i = iterator(); while (i.hasNext()) { if (!collection.contains(i.next())) { i.remove(); changed = true;
/** * checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ @Override public boolean containsKey(Object key) { //noinspection unchecked return contains(key); }
/** * checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey(Object key) { //noinspection unchecked return contains(key); }
/** * checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey( Object key ) { //noinspection unchecked return contains( key ); }
/** * checks for the present of <tt>key</tt> in the keys of the map. * * @param key an <code>Object</code> value * @return a <code>boolean</code> value */ public boolean containsKey(Object key) { //noinspection unchecked return contains(key); }
/** See {@link gnu.trove.map.hash.THashMap#contains(Object)} */ public boolean contains(Object obj) { return delegate.contains(obj); }
/** See {@link gnu.trove.map.hash.THashMap#contains(Object)} */ public boolean contains(Object obj) { return delegate.contains(obj); }
Iterator<E> i = iterator(); while (i.hasNext()) { if (!collection.contains(i.next())) { i.remove(); changed = true;
Iterator<E> i = iterator(); while (i.hasNext()) { if (!collection.contains(i.next())) { i.remove(); changed = true;
Iterator<E> i = iterator(); while (i.hasNext()) { if (!collection.contains(i.next())) { i.remove(); changed = true;
Iterator<E> i = iterator(); while ( i.hasNext() ) { if ( !collection.contains( i.next() ) ) { i.remove(); changed = true;
@Override public void map(Text key, PairOfStrings t, OutputCollector<Text, Text> output, Reporter reporter) throws IOException { if (redirects.size() == 0) throw new IOException("zero redirects"); String entity = t.getLeftElement(); entity = capitalizeFirstChar(entity); reporter.setStatus(entity); ArrayList<String> seen = new ArrayList<String>(); // transitivity while (redirects.contains(entity)) { reporter.incrCounter(Resolve.REDIRECT, 1); String target = redirects.get(entity); // break loops if (seen.contains(target)) { break; } else { seen.add(target); } if (target.equals(entity)) break; entity = target; } // Here we "lose" the key, i.e., from which article the link originated. KEY.set(entity); VALUE.set(t.getRightElement()); output.collect(KEY, VALUE); } }