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

Examples of com.gs.collections.impl.list.mutable.primitive.IntArrayList


        return this.toList().toArray();
    }

    public MutableIntList toList()
    {
        final MutableIntList list = new IntArrayList();
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                list.add(each);
            }
        });
        return list;
    }
View Full Code Here


        return result;
    }

    public MutableIntList collectInt(IntFunction<? super V> intFunction)
    {
        IntArrayList result = new IntArrayList(this.size());
        this.forEach(new CollectIntProcedure<V>(intFunction, result));
        return result;
    }
View Full Code Here

        return Bags.immutable.of();
    }

    public MutableIntList toList()
    {
        return new IntArrayList();
    }
View Full Code Here

        return new int[0];
    }

    public MutableIntList toSortedList()
    {
        return new IntArrayList();
    }
View Full Code Here

        return true;
    }

    public ImmutableIntList select(IntPredicate predicate)
    {
        IntArrayList result = new IntArrayList();
        for (int item : this.items)
        {
            if (predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableIntList reject(IntPredicate predicate)
    {
        IntArrayList result = new IntArrayList();
        for (int item : this.items)
        {
            if (!predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

    public IntList peek(int count)
    {
        this.checkNegativeCount(count);
        if (count == 0)
        {
            return new IntArrayList(0);
        }
        throw new EmptyStackException();
    }
View Full Code Here

        return new int[0];
    }

    public MutableIntList toSortedList()
    {
        return new IntArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableIntList toList()
    {
        return new IntArrayList();
    }
View Full Code Here

    }

    @Override
    public MutableIntList collectInt(IntFunction<? super T> intFunction)
    {
        IntArrayList result = new IntArrayList(this.size());
        this.forEach(new CollectIntProcedure<T>(intFunction, result));
        return result;
    }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.list.mutable.primitive.IntArrayList

Copyright © 2018 www.massapicom. 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.