/** {@inheritDoc} */ public boolean containsAll( Collection<?> collection ) { for ( Object element : collection ) { if ( element instanceof Integer ) { int ele = ( ( Integer ) element ).intValue(); if ( ! TIntDoubleHashMap.this.containsKey( ele ) ) { return false; } } else { return false; } } return true; }
/** {@inheritDoc} */ public boolean containsAll( TIntCollection collection ) { TIntIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TIntDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
public boolean hasPageDistance(int pageId) { return pageDistances.containsKey(pageId); } public double getPageDistance(int pageId) {
public boolean hasCategoryDistanceForIndex(int categoryId) { return catDistances.containsKey(categoryId); } public boolean hasCategoryDistance(int pageId) {
/** {@inheritDoc} */ public boolean containsAll( Collection<?> collection ) { for ( Object element : collection ) { if ( element instanceof Integer ) { int ele = ( ( Integer ) element ).intValue(); if ( ! TIntDoubleHashMap.this.containsKey( ele ) ) { return false; } } else { return false; } } return true; }
/** {@inheritDoc} */ public boolean containsAll( Collection<?> collection ) { for ( Object element : collection ) { if ( element instanceof Integer ) { int ele = ( ( Integer ) element ).intValue(); if ( ! TIntDoubleHashMap.this.containsKey( ele ) ) { return false; } } else { return false; } } return true; }
/** {@inheritDoc} */ public boolean containsAll( Collection<?> collection ) { for ( Object element : collection ) { if ( element instanceof Integer ) { int ele = ( ( Integer ) element ).intValue(); if ( ! TIntDoubleHashMap.this.containsKey( ele ) ) { return false; } } else { return false; } } return true; }
/** {@inheritDoc} */ @Override public boolean containsAll( Collection<?> collection ) { for ( Object element : collection ) { if ( element instanceof Integer ) { int ele = ( ( Integer ) element ).intValue(); if ( ! TIntDoubleHashMap.this.containsKey( ele ) ) { return false; } } else { return false; } } return true; }
public boolean hasCategoryDistance(int pageId) { return catDistances.containsKey(graph.catIdToIndex(pageId)); } public double getCategoryDistance(int categoryId) {
/** {@inheritDoc} */ public boolean containsAll( TIntCollection collection ) { TIntIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TIntDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
/** {@inheritDoc} */ @Override public boolean containsAll( TIntCollection collection ) { TIntIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TIntDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean containsAll( TIntCollection collection ) { TIntIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TIntDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean containsAll( TIntCollection collection ) { TIntIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TIntDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
continue; if (!pageDistances.containsKey(i) || pageDistances.get(i) > cs.getDistance()) { pageDistances.put(i, cs.getDistance()); visited.pages.put(i, cs.getDistance()); if (!catDistances.containsKey(i)) { double d = cs.getDistance() + graph.catCosts[i]; openCats.add(new CategoryDistance(i, graph.cats[i], d, (byte)-1)); if (!catDistances.containsKey(i)) { double d = cs.getDistance() + graph.catCosts[i]; openCats.add(new CategoryDistance(i, graph.cats[i], d, (byte)+1));