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

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


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

    public ImmutableCharBag collectChar(final CharFunction<? super T> charFunction)
    {
        final CharHashBag result = new CharHashBag(this.size());
View Full Code Here


    public ImmutableByteBag newWithout(byte element)
    {
        ByteHashBag hashBag = ByteHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }

    public ImmutableByteBag newWithAll(ByteIterable elements)
    {
        ByteHashBag bag = ByteHashBag.newBag(this.delegate);
View Full Code Here

    public ImmutableByteBag newWithAll(ByteIterable elements)
    {
        ByteHashBag bag = ByteHashBag.newBag(this.delegate);
        bag.addAll(elements);
        return bag.toImmutable();
    }

    public ImmutableByteBag newWithoutAll(ByteIterable elements)
    {
        ByteHashBag bag = ByteHashBag.newBag(this.delegate);
View Full Code Here

    public ImmutableByteBag newWithoutAll(ByteIterable elements)
    {
        ByteHashBag bag = ByteHashBag.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.