Examples of LongProcedure


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

        return this;
    }

    public LongCharHashMap withoutAllKeys(LongIterable keys)
    {
        keys.forEach(new LongProcedure()
        {
            public void value(long key)
            {
                LongCharHashMap.this.removeKey(key);
            }
View Full Code Here

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

    @Override
    public long[] toArray()
    {
        final long[] array = new long[this.size()];
        this.forEach(new LongProcedure()
        {
            @SuppressWarnings("FieldMayBeFinal")
            private int index = 0;
            public void value(long each)
            {
View Full Code Here

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

        }
        if (map.size() == 1)
        {
            //TODO use keysView() when available.
            final long[] array = new long[1];
            map.forEachKey(new LongProcedure()
            {
                public void value(long each)
                {
                    array[0] = each;
                }
View Full Code Here

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

        this.function = function;
    }

    public void forEach(final Procedure<? super V> procedure)
    {
        this.iterable.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                procedure.value(CollectLongToObjectIterable.this.function.valueOf(each));
            }
View Full Code Here

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

        });
    }

    public void forEachWithIndex(final ObjectIntProcedure<? super V> objectIntProcedure)
    {
        this.iterable.forEach(new LongProcedure()
        {
            private int index;

            public void value(long each)
            {
View Full Code Here

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

        });
    }

    public <P> void forEachWith(final Procedure2<? super V, ? super P> procedure, final P parameter)
    {
        this.iterable.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                procedure.value(CollectLongToObjectIterable.this.function.valueOf(each), parameter);
            }
View Full Code Here

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

   *
   * @return <tt>true</tt> if the receiver contains the specified key.
   */
  public boolean containsKey(final long key) {
    return !forEachKey(
        new LongProcedure() {
          @Override
          public boolean apply(long iterKey) {
            return (key != iterKey);
          }
        }
View Full Code Here

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

   *                  continues.
   * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.
   */
  public boolean forEachPair(final LongFloatProcedure procedure) {
    return forEachKey(
        new LongProcedure() {
          @Override
          public boolean apply(long key) {
            return procedure.apply(key, get(key));
          }
        }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void keys(final LongArrayList list) {
    list.clear();
    forEachKey(
        new LongProcedure() {
          @Override
          public boolean apply(long key) {
            list.add(key);
            return true;
          }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void values(final FloatArrayList list) {
    list.clear();
    forEachKey(
        new LongProcedure() {
          @Override
          public boolean apply(long key) {
            list.add(get(key));
            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.