Examples of IntCharProcedure


Examples of com.carrotsearch.hppc.procedures.IntCharProcedure

        // Maps also support iteration through [keyType][valueType]Procedure interfaces.
        // The apply() method will be called once for each key/value pair in the map.
       
        // Iteration from head to tail
        map.forEach(new IntCharProcedure()
        {
            public void apply(int key, char value)
            {
                System.out.println(key + " -> " + value);
            }
View Full Code Here

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

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

    public void putAll(IntCharMap map)
    {
        map.forEachKeyValue(new IntCharProcedure()
        {
            public void value(int key, char value)
            {
                IntCharHashMap.this.put(key, value);
            }
View Full Code Here

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

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

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

      return false;
    }

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

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

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

    forEachPair(
        new IntCharProcedure() {
          @Override
          public boolean apply(int key, char 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.