Examples of toImmutable()


Examples of com.gs.collections.api.map.primitive.MutableShortFloatMap.toImmutable()

    public ImmutableShortFloatMap newWithKeyValue(short key, float value)
    {
        MutableShortFloatMap map = new ShortFloatHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableShortFloatMap newWithoutKey(short key)
    {
        MutableShortFloatMap map = new ShortFloatHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableShortIntMap.toImmutable()

    public ImmutableShortIntMap newWithKeyValue(short key, int value)
    {
        MutableShortIntMap map = new ShortIntHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableShortIntMap newWithoutKey(short key)
    {
        MutableShortIntMap map = new ShortIntHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableShortLongMap.toImmutable()

    public ImmutableShortLongMap newWithKeyValue(short key, long value)
    {
        MutableShortLongMap map = new ShortLongHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableShortLongMap newWithoutKey(short key)
    {
        MutableShortLongMap map = new ShortLongHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableShortShortMap.toImmutable()

    public ImmutableShortShortMap newWithKeyValue(short key, short value)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableShortShortMap newWithoutKey(short key)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.api.set.primitive.MutableByteSet.toImmutable()

                        result.add(value);
                    }
                }
            });

            return result.toImmutable();
        }

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

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

    public ImmutableBooleanBag newWithout(boolean element)
    {
        BooleanHashBag hashBag = BooleanHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }

    public ImmutableBooleanBag newWithAll(BooleanIterable elements)
    {
        BooleanHashBag bag = BooleanHashBag.newBag(this.delegate);
View Full Code Here

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

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

    public ImmutableCharBag newWithout(char element)
    {
        CharHashBag hashBag = CharHashBag.newBag(this.delegate);
        hashBag.remove(element);
        return hashBag.toImmutable();
    }

    public ImmutableCharBag newWithAll(CharIterable elements)
    {
        CharHashBag bag = CharHashBag.newBag(this.delegate);
View Full Code Here

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

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
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.