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

Examples of com.gs.collections.impl.bag.mutable.primitive.FloatHashBag.toImmutable()


            public void value(T each, int occurrences)
            {
                result.addOccurrences(floatFunction.floatValueOf(each), occurrences);
            }
        });
        return result.toImmutable();
    }

    public ImmutableIntBag collectInt(final IntFunction<? super T> intFunction)
    {
        final IntHashBag result = new IntHashBag(this.size());
View Full Code Here


    public ImmutableFloatBag newWithout(float element)
    {
        FloatHashBag hashBag = FloatHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }

    public ImmutableFloatBag newWithAll(FloatIterable elements)
    {
        FloatHashBag bag = FloatHashBag.newBag(this.delegate);
View Full Code Here

    public ImmutableFloatBag newWithAll(FloatIterable elements)
    {
        FloatHashBag bag = FloatHashBag.newBag(this.delegate);
        bag.addAll(elements);
        return bag.toImmutable();
    }

    public ImmutableFloatBag newWithoutAll(FloatIterable elements)
    {
        FloatHashBag bag = FloatHashBag.newBag(this.delegate);
View Full Code Here

    public ImmutableFloatBag newWithoutAll(FloatIterable elements)
    {
        FloatHashBag bag = FloatHashBag.newBag(this.delegate);
        bag.removeAll(elements);
        return bag.toImmutable();
    }

    public int size()
    {
        return this.delegate.size();
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.