Examples of ShortProcedure


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

        return this;
    }

    public ShortShortHashMap withoutAllKeys(ShortIterable keys)
    {
        keys.forEach(new ShortProcedure()
        {
            public void value(short key)
            {
                ShortShortHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public short[] toArray()
        {
            int size = ShortShortHashMap.this.size();
            final short[] result = new short[size];
            ShortShortHashMap.this.forEachKey(new ShortProcedure()
            {
                private int index;

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

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

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

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

        public short[] toArray()
        {
            int size = ShortCharHashMap.this.size();
            final short[] result = new short[size];
            ShortCharHashMap.this.forEachKey(new ShortProcedure()
            {
                private int index;

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

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

        return this;
    }

    public ShortCharHashMap withoutAllKeys(ShortIterable keys)
    {
        keys.forEach(new ShortProcedure()
        {
            public void value(short key)
            {
                ShortCharHashMap.this.removeKey(key);
            }
View Full Code Here

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

        return this;
    }

    public ShortFloatHashMap withoutAllKeys(ShortIterable keys)
    {
        keys.forEach(new ShortProcedure()
        {
            public void value(short key)
            {
                ShortFloatHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public short[] toArray()
        {
            int size = ShortFloatHashMap.this.size();
            final short[] result = new short[size];
            ShortFloatHashMap.this.forEachKey(new ShortProcedure()
            {
                private int index;

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

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

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

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

      return false;
    }

    return
        forEachKey(
            new ShortProcedure() {
              @Override
              public boolean apply(short key) {
                return other.contains(key);
              }
            }
View Full Code Here

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

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