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

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


        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


        return result.toImmutable();
    }

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

    }

    @Override
    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

        return this.collectLong(longFunction, new LongArrayList());
    }

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

    {
        if (objectArray == null)
        {
            throw new IllegalArgumentException("Cannot perform a collectShort on null");
        }
        MutableShortList result = new ShortArrayList(objectArray.length);
        for (T each : objectArray)
        {
            result.add(shortFunction.shortValueOf(each));
        }
        return result;
    }
View Full Code Here

     */
    public static <K, V> MutableShortCollection collectShort(
            Map<K, V> map,
            ShortFunction<? super V> shortFunction)
    {
        return collectShort(map, shortFunction, new ShortArrayList(map.size()));
    }
View Full Code Here

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

    public MutableShortList toList()
    {
        final MutableShortList list = new ShortArrayList();
        this.forEach(new ShortProcedure()
        {
            public void value(short each)
            {
                list.add(each);
            }
        });
        return list;
    }
View Full Code Here

        return result;
    }

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

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

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.