Examples of LongProcedure


Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of cern.colt.function.LongProcedure

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

Examples of com.carrotsearch.hppc.procedures.LongProcedure

    /* */
    @Test
    public void testWithProcedureClosure()
    {
        final IntHolder count = new IntHolder();
        list.forEach(new LongProcedure() {
            public void apply(long v)
            {
                if (v != defValue)
                    count.value++;
            }
View Full Code Here

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

        public long[] toArray()
        {
            int size = LongCharHashMap.this.size();
            final long[] result = new long[size];
            LongCharHashMap.this.forEachKey(new LongProcedure()
            {
                private int index;

                public void value(long each)
                {
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.