Examples of ByteProcedure


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

        public ImmutableByteSet reject(final BytePredicate predicate)
        {
            final MutableByteSet result = new ByteHashSet();

            this.forEach(new ByteProcedure()
            {
                public void value(byte value)
                {
                    if (!predicate.accept(value))
                    {
View Full Code Here

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

        public <V> ImmutableSet<V> collect(final ByteToObjectFunction<? extends V> function)
        {
            final MutableSet<V> target = UnifiedSet.newSet(this.size());

            this.forEach(new ByteProcedure()
            {
                public void value(byte each)
                {
                    target.add(function.valueOf(each));
                }
View Full Code Here

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

    public ByteHashSet select(final BytePredicate predicate)
    {
        final ByteHashSet result = new ByteHashSet();

        this.forEach(new ByteProcedure()
        {
            public void value(byte value)
            {
                if (predicate.accept(value))
                {
View Full Code Here

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

    public MutableByteSet reject(final BytePredicate predicate)
    {
        final MutableByteSet result = new ByteHashSet();

        this.forEach(new ByteProcedure()
        {
            public void value(byte value)
            {
                if (!predicate.accept(value))
                {
View Full Code Here

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

    public <V> MutableSet<V> collect(final ByteToObjectFunction<? extends V> function)
    {
        final MutableSet<V> target = UnifiedSet.newSet(this.size());

        this.forEach(new ByteProcedure()
        {
            public void value(byte each)
            {
                target.add(function.valueOf(each));
            }
View Full Code Here

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

        return this;
    }

    public ByteCharHashMap withoutAllKeys(ByteIterable keys)
    {
        keys.forEach(new ByteProcedure()
        {
            public void value(byte key)
            {
                ByteCharHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public byte[] toArray()
        {
            int size = ByteCharHashMap.this.size();
            final byte[] result = new byte[size];
            ByteCharHashMap.this.forEachKey(new ByteProcedure()
            {
                private int index;

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

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

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

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

      return false;
    }

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

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

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