Examples of toImmutable()


Examples of com.gs.collections.impl.set.mutable.primitive.IntHashSet.toImmutable()

    public ImmutableIntSet collectInt(IntFunction<? super T> intFunction)
    {
        IntHashSet result = new IntHashSet(this.size());
        this.forEach(new CollectIntProcedure<T>(intFunction, result));
        return result.toImmutable();
    }

    public ImmutableLongSet collectLong(LongFunction<? super T> longFunction)
    {
        LongHashSet result = new LongHashSet(this.size());
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet.toImmutable()

    public ImmutableLongSet collectLong(LongFunction<? super T> longFunction)
    {
        LongHashSet result = new LongHashSet(this.size());
        this.forEach(new CollectLongProcedure<T>(longFunction, result));
        return result.toImmutable();
    }

    public ImmutableShortSet collectShort(ShortFunction<? super T> shortFunction)
    {
        ShortHashSet result = new ShortHashSet(this.size());
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.ShortHashSet.toImmutable()

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

    public <P, V> ImmutableSet<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
    {
        return this.collect(Functions.bind(function, parameter));
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.BooleanArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(booleanFunction.booleanValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
    {
        return this.delegate.collectBoolean(booleanFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.ByteArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(byteFunction.byteValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableByteCollection> R collectByte(ByteFunction<? super T> byteFunction, R target)
    {
        return this.delegate.collectByte(byteFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.CharArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(charFunction.charValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableCharCollection> R collectChar(CharFunction<? super T> charFunction, R target)
    {
        return this.delegate.collectChar(charFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.DoubleArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(doubleFunction.doubleValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super T> doubleFunction, R target)
    {
        return this.delegate.collectDouble(doubleFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.FloatArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(floatFunction.floatValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super T> floatFunction, R target)
    {
        return this.delegate.collectFloat(floatFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.IntArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(intFunction.intValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableIntCollection> R collectInt(IntFunction<? super T> intFunction, R target)
    {
        return this.delegate.collectInt(intFunction, target);
View Full Code Here

Examples of com.gs.collections.impl.stack.mutable.primitive.LongArrayStack.toImmutable()

            public void value(T each)
            {
                result.push(longFunction.longValueOf(each));
            }
        });
        return result.toImmutable();
    }

    public <R extends MutableLongCollection> R collectLong(LongFunction<? super T> longFunction, R target)
    {
        return this.delegate.collectLong(longFunction, target);
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.