Package cern.colt.function

Examples of cern.colt.function.IntIntProcedure


*       returns <tt>Integer.MIN_VALUE</tt> if no such key exists.
*/
public int keyOf(final int value) {
  final int[] foundKey = new int[1];
  boolean notFound = forEachPair(
    new IntIntProcedure() {
      public boolean apply(int iterKey, int iterValue) {
        boolean found = value == iterValue;
        if (found) foundKey[0] = iterKey;
        return !found;
      }
View Full Code Here


public void pairsMatching(final IntIntProcedure condition, final IntArrayList keyList, final IntArrayList valueList) {
  keyList.clear();
  valueList.clear();
 
  forEachPair(
    new IntIntProcedure() {
      public boolean apply(int key, int value) {
        if (condition.apply(key,value)) {
          keyList.add(key);
          valueList.add(value);
        }
View Full Code Here

TOP

Related Classes of cern.colt.function.IntIntProcedure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.