Examples of IntLongProcedure


Examples of com.gs.collections.api.block.procedure.primitive.IntLongProcedure

        this.addKeyValueAtIndex(key, value, index);
    }

    public void putAll(IntLongMap map)
    {
        map.forEachKeyValue(new IntLongProcedure()
        {
            public void value(int key, long value)
            {
                IntLongHashMap.this.put(key, value);
            }
View Full Code Here

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

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

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

      return false;
    }

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

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

                           final LongArrayList valueList) {
    keyList.clear();
    valueList.clear();

    forEachPair(
        new IntLongProcedure() {
          @Override
          public boolean apply(int key, long value) {
            if (condition.apply(key, value)) {
              keyList.add(key);
              valueList.add(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.