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

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


    }

    public ImmutableIntList select(IntPredicate predicate)
    {
        return predicate.accept(this.element1) ? IntArrayList.newListWith(this.element1).toImmutable()
                : new IntArrayList().toImmutable();
    }
View Full Code Here


    }

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

    private transient IntArrayList delegate;

    public IntArrayStack()
    {
        this.delegate = new IntArrayList();
    }
View Full Code Here

        this.delegate = new IntArrayList();
    }

    private IntArrayStack(int size)
    {
        this.delegate = new IntArrayList(size);
    }
View Full Code Here

        this.delegate = new IntArrayList(size);
    }

    private IntArrayStack(int... items)
    {
        this.delegate = new IntArrayList(items);
    }
View Full Code Here

    {
        this.checkPositiveValueForCount(count);
        this.checkSizeLessThanCount(count);
        if (count == 0)
        {
            return new IntArrayList(0);
        }
        MutableIntList subList = new IntArrayList(count);
        while (count > 0)
        {
            subList.add(this.pop());
            count--;
        }
        return subList;
    }
View Full Code Here

    {
        this.checkPositiveValueForCount(count);
        this.checkSizeLessThanCount(count);
        if (count == 0)
        {
            return new IntArrayList(0);
        }
        MutableIntList subList = new IntArrayList(count);
        int index = this.delegate.size() - 1;
        for (int i = 0; i < count; i++)
        {
            subList.add(this.delegate.get(index - i));
        }
        return subList;
    }
View Full Code Here

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

    public IntList peek(int count)
    {
        this.checkNegativeCount(count);
        if (count == 0)
        {
            return new IntArrayList(0);
        }
        if (count == 1)
        {
            return IntArrayList.newListWith(this.element1);
        }
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.