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

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


        return Bags.immutable.of();
    }

    public MutableShortList toList()
    {
        return new ShortArrayList();
    }
View Full Code Here


        return new short[0];
    }

    public MutableShortList toSortedList()
    {
        return new ShortArrayList();
    }
View Full Code Here

    }

    @Override
    public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
    {
        return this.collectShort(shortFunction, new ShortArrayList(this.size));
    }
View Full Code Here

        return result;
    }

    public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
    {
        ShortArrayList result = new ShortArrayList(this.size());
        this.forEach(new CollectShortProcedure<T>(shortFunction, result));
        return result;
    }
View Full Code Here

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

        return new short[0];
    }

    public MutableShortList toSortedList()
    {
        return new ShortArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableShortList toList()
    {
        return new ShortArrayList();
    }
View Full Code Here

    }

    public ImmutableShortList select(ShortPredicate predicate)
    {
        return predicate.accept(this.element1) ? ShortArrayList.newListWith(this.element1).toImmutable()
                : new ShortArrayList().toImmutable();
    }
View Full Code Here

                : new ShortArrayList().toImmutable();
    }

    public ImmutableShortList reject(ShortPredicate predicate)
    {
        return predicate.accept(this.element1) ? new ShortArrayList().toImmutable()
                : ShortArrayList.newListWith(this.element1).toImmutable();
    }
View Full Code Here

        return this.element1 == element ? ShortLists.immutable.with() : this;
    }

    public ImmutableShortList newWithAll(ShortIterable elements)
    {
        ShortArrayList arrayList = ShortArrayList.newListWith(this.element1);
        arrayList.addAll(elements);
        return arrayList.toImmutable();
    }
View Full Code Here

TOP

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

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.