Examples of IntObjectProcedure


Examples of cern.colt.function.IntObjectProcedure

            substructureEdges.clear();
            coincidentIntersections.clear();
            int hssSize = hsIntersections.size();
            for (int h = 0; h < hssSize; h++)
            {
                hsIntersections.forEachPair(new IntObjectProcedure()
                {
                    public boolean apply(int key, Object value)
                    {
                        ((ObjectArrayList) value).clear();
                        return true;
View Full Code Here

Examples of cern.colt.function.IntObjectProcedure

*
* @return <tt>true</tt> if the receiver contains the specified value.
*/
public boolean containsValue(final Object value) {
  return ! forEachPair(
    new IntObjectProcedure() {
      public boolean apply(int iterKey, Object iterValue) {
        return (value != iterValue);
      }
    }
  );
View Full Code Here

Examples of cern.colt.function.IntObjectProcedure

  final AbstractIntObjectMap other = (AbstractIntObjectMap) obj;
  if (other.size() != size()) return false;

  return
    forEachPair(
      new IntObjectProcedure() {
        public boolean apply(int key, Object value) {
          return other.containsKey(key) && other.get(key) == value;
        }
      }
    )
    &&
    other.forEachPair(
      new IntObjectProcedure() {
        public boolean apply(int key, Object value) {
          return containsKey(key) && get(key) == value;
        }
      }
    );
View Full Code Here

Examples of cern.colt.function.IntObjectProcedure

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

Examples of cern.colt.function.IntObjectProcedure

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

Examples of org.apache.mahout.math.function.IntObjectProcedure

      return false;
    }

    return
        forEachPair(
            new IntObjectProcedure() {
              @Override
              public boolean apply(int key, Object value) {
                return other.containsKey(key) && other.get(key) == value;
              }
            }
        )
            &&
            other.forEachPair(
                new IntObjectProcedure() {
                  @Override
                  public boolean apply(int key, Object value) {
                    return containsKey(key) && get(key) == value;
                  }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.