Examples of toImmutable()


Examples of com.gs.collections.impl.list.mutable.primitive.ShortArrayList.toImmutable()

    public ImmutableShortCollection collectShort(ShortFunction<? super V> shortFunction)
    {
        ShortArrayList result = new ShortArrayList(this.size());
        this.forEach(new CollectShortProcedure<V>(shortFunction, result));
        return result.toImmutable();
    }

    public <R> ImmutableCollection<R> collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function)
    {
        return this.collectIf(predicate, function, FastList.<R>newList(this.size())).toImmutable();
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteBooleanHashMap.toImmutable()

    public ImmutableByteBooleanMap newWithKeyValue(byte key, boolean value)
    {
        MutableByteBooleanMap map = new ByteBooleanHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteBooleanMap newWithoutKey(byte key)
    {
        MutableByteBooleanMap map = new ByteBooleanHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteByteHashMap.toImmutable()

    public ImmutableByteByteMap newWithKeyValue(byte key, byte value)
    {
        MutableByteByteMap map = new ByteByteHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteByteMap newWithoutKey(byte key)
    {
        MutableByteByteMap map = new ByteByteHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteCharHashMap.toImmutable()

    public ImmutableByteCharMap newWithKeyValue(byte key, char value)
    {
        MutableByteCharMap map = new ByteCharHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteCharMap newWithoutKey(byte key)
    {
        MutableByteCharMap map = new ByteCharHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteDoubleHashMap.toImmutable()

    public ImmutableByteDoubleMap newWithKeyValue(byte key, double value)
    {
        MutableByteDoubleMap map = new ByteDoubleHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteDoubleMap newWithoutKey(byte key)
    {
        MutableByteDoubleMap map = new ByteDoubleHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteFloatHashMap.toImmutable()

    public ImmutableByteFloatMap newWithKeyValue(byte key, float value)
    {
        MutableByteFloatMap map = new ByteFloatHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteFloatMap newWithoutKey(byte key)
    {
        MutableByteFloatMap map = new ByteFloatHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteIntHashMap.toImmutable()

    public ImmutableByteIntMap newWithKeyValue(byte key, int value)
    {
        MutableByteIntMap map = new ByteIntHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteIntMap newWithoutKey(byte key)
    {
        MutableByteIntMap map = new ByteIntHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteLongHashMap.toImmutable()

    public ImmutableByteLongMap newWithKeyValue(byte key, long value)
    {
        MutableByteLongMap map = new ByteLongHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteLongMap newWithoutKey(byte key)
    {
        MutableByteLongMap map = new ByteLongHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.ByteShortHashMap.toImmutable()

    public ImmutableByteShortMap newWithKeyValue(byte key, short value)
    {
        MutableByteShortMap map = new ByteShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableByteShortMap newWithoutKey(byte key)
    {
        MutableByteShortMap map = new ByteShortHashMap(this.size());
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharBooleanHashMap.toImmutable()

    public ImmutableCharBooleanMap newWithKeyValue(char key, boolean value)
    {
        MutableCharBooleanMap map = new CharBooleanHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableCharBooleanMap newWithoutKey(char key)
    {
        MutableCharBooleanMap map = new CharBooleanHashMap(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.