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

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


    public ImmutableDoubleBag newWithout(double element)
    {
        DoubleHashBag hashBag = DoubleHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }

    public ImmutableDoubleBag newWithAll(DoubleIterable elements)
    {
        DoubleHashBag bag = DoubleHashBag.newBag(this.delegate);
View Full Code Here


    public ImmutableDoubleBag newWithAll(DoubleIterable elements)
    {
        DoubleHashBag bag = DoubleHashBag.newBag(this.delegate);
        bag.addAll(elements);
        return bag.toImmutable();
    }

    public ImmutableDoubleBag newWithoutAll(DoubleIterable elements)
    {
        DoubleHashBag bag = DoubleHashBag.newBag(this.delegate);
View Full Code Here

    public ImmutableDoubleBag newWithoutAll(DoubleIterable elements)
    {
        DoubleHashBag bag = DoubleHashBag.newBag(this.delegate);
        bag.removeAll(elements);
        return bag.toImmutable();
    }

    public int size()
    {
        return this.delegate.size();
View Full Code Here

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

    public ImmutableFloatBag collectFloat(final FloatFunction<? super T> floatFunction)
    {
        final FloatHashBag result = new FloatHashBag(this.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.