Examples of CharProcedure


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

    }

    public MutableCharBag toBag()
    {
        final MutableCharBag bag = new CharHashBag();
        this.forEach(new CharProcedure()
        {
            public void value(char each)
            {
                bag.add(each);
            }
View Full Code Here

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

        return this;
    }

    public CharFloatHashMap withoutAllKeys(CharIterable keys)
    {
        keys.forEach(new CharProcedure()
        {
            public void value(char key)
            {
                CharFloatHashMap.this.removeKey(key);
            }
View Full Code Here

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

        return this;
    }

    public CharDoubleHashMap withoutAllKeys(CharIterable keys)
    {
        keys.forEach(new CharProcedure()
        {
            public void value(char key)
            {
                CharDoubleHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public char[] toArray()
        {
            int size = CharDoubleHashMap.this.size();
            final char[] result = new char[size];
            CharDoubleHashMap.this.forEachKey(new CharProcedure()
            {
                private int index;

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

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

        return this;
    }

    public CharLongHashMap withoutAllKeys(CharIterable keys)
    {
        keys.forEach(new CharProcedure()
        {
            public void value(char key)
            {
                CharLongHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public char[] toArray()
        {
            int size = CharLongHashMap.this.size();
            final char[] result = new char[size];
            CharLongHashMap.this.forEachKey(new CharProcedure()
            {
                private int index;

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

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

        public char[] toArray()
        {
            int size = CharFloatHashMap.this.size();
            final char[] result = new char[size];
            CharFloatHashMap.this.forEachKey(new CharProcedure()
            {
                private int index;

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

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

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

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

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

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

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