Examples of LongDoubleProcedure


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

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

    public void putAll(LongDoubleMap map)
    {
        map.forEachKeyValue(new LongDoubleProcedure()
        {
            public void value(long key, double value)
            {
                LongDoubleHashMap.this.put(key, value);
            }
View Full Code Here

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

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

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

      return false;
    }

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

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

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

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

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

   *
   * @param function a function object taking as argument the current association's value.
   */
  public void assign(final DoubleFunction function) {
    copy().forEachPair(
        new LongDoubleProcedure() {
          @Override
          public boolean apply(long key, double value) {
            put(key, function.apply(value));
            return true;
          }
View Full Code Here

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

   * @param other the other map to be copied into the receiver.
   */
  public void assign(AbstractLongDoubleMap other) {
    clear();
    other.forEachPair(
        new LongDoubleProcedure() {
          @Override
          public boolean apply(long key, double value) {
            put(key, value);
            return true;
          }
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.