Package com.gs.collections.impl.bag.mutable.primitive

Examples of com.gs.collections.impl.bag.mutable.primitive.IntHashBag


        return new IntHashSet();
    }

    public MutableIntBag toBag()
    {
        return new IntHashBag();
    }
View Full Code Here


        return set;
    }

    public MutableIntBag toBag()
    {
        final MutableIntBag bag = new IntHashBag();
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                bag.add(each);
            }
        });
        return bag;
    }
View Full Code Here

        return new IntHashSet();
    }

    public MutableIntBag toBag()
    {
        return new IntHashBag();
    }
View Full Code Here

        return new IntHashSet();
    }

    public MutableIntBag toBag()
    {
        return new IntHashBag();
    }
View Full Code Here

        return new IntHashSet();
    }

    public MutableIntBag toBag()
    {
        return new IntHashBag();
    }
View Full Code Here

        return this.collectFloat(floatFunction, new FloatHashBag());
    }

    public MutableIntBag collectInt(IntFunction<? super T> intFunction)
    {
        return this.collectInt(intFunction, new IntHashBag());
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableIntBag collectInt(final IntFunction<? super T> intFunction)
    {
        final IntHashBag result = new IntHashBag(this.size());
        this.forEachWithOccurrences(new ObjectIntProcedure<T>()
        {
            public void value(T each, int occurrences)
            {
                result.addOccurrences(intFunction.intValueOf(each), occurrences);
            }
        });
        return result.toImmutable();
    }
View Full Code Here

    }

    public ImmutableIntBag select(IntPredicate predicate)
    {
        return predicate.accept(this.element1) ? IntHashBag.newBagWith(this.element1).toImmutable()
                : new IntHashBag().toImmutable();
    }
View Full Code Here

                : new IntHashBag().toImmutable();
    }

    public ImmutableIntBag reject(IntPredicate predicate)
    {
        return predicate.accept(this.element1) ? new IntHashBag().toImmutable()
                : IntHashBag.newBagWith(this.element1).toImmutable();
    }
View Full Code Here

        return IntHashBag.newBag(this.delegate).with(element).toImmutable();
    }

    public ImmutableIntBag newWithout(int element)
    {
        IntHashBag hashBag = IntHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.bag.mutable.primitive.IntHashBag

Copyright © 2018 www.massapicom. 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.