Examples of IntByteProcedure


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

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

    public void putAll(IntByteMap map)
    {
        map.forEachKeyValue(new IntByteProcedure()
        {
            public void value(int key, byte value)
            {
                IntByteHashMap.this.put(key, value);
            }
View Full Code Here

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

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

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

      return false;
    }

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

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

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

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