Examples of FloatProcedure


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

        return this;
    }

    public FloatLongHashMap withoutAllKeys(FloatIterable keys)
    {
        keys.forEach(new FloatProcedure()
        {
            public void value(float key)
            {
                FloatLongHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public float[] toArray()
        {
            int size = FloatCharHashMap.this.size();
            final float[] result = new float[size];
            FloatCharHashMap.this.forEachKey(new FloatProcedure()
            {
                private int index;

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

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

        return this;
    }

    public FloatCharHashMap withoutAllKeys(FloatIterable keys)
    {
        keys.forEach(new FloatProcedure()
        {
            public void value(float key)
            {
                FloatCharHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public float[] toArray()
        {
            int size = FloatDoubleHashMap.this.size();
            final float[] result = new float[size];
            FloatDoubleHashMap.this.forEachKey(new FloatProcedure()
            {
                private int index;

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

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

        return this;
    }

    public FloatDoubleHashMap withoutAllKeys(FloatIterable keys)
    {
        keys.forEach(new FloatProcedure()
        {
            public void value(float key)
            {
                FloatDoubleHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public float[] toArray()
        {
            int size = FloatByteHashMap.this.size();
            final float[] result = new float[size];
            FloatByteHashMap.this.forEachKey(new FloatProcedure()
            {
                private int index;

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

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

        return this;
    }

    public FloatByteHashMap withoutAllKeys(FloatIterable keys)
    {
        keys.forEach(new FloatProcedure()
        {
            public void value(float key)
            {
                FloatByteHashMap.this.removeKey(key);
            }
View Full Code Here

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

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

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

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

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

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