Package org.apache.mahout.math.function

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


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


      return false;
    }

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

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

    forEachPair(
        new IntShortProcedure() {
          @Override
          public boolean apply(int key, short value) {
            if (condition.apply(key, value)) {
              keyList.add(key);
              valueList.add(value);
View Full Code Here

TOP

Related Classes of org.apache.mahout.math.function.IntShortProcedure

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.