Package stallone.ints

Examples of stallone.ints.IntArrayList_FastUtilWrapper


    //
    // ***********************************************************************

    public IIntList list(int size)
    {
        return (new IntArrayList_FastUtilWrapper(new int[size]));
    }
View Full Code Here


        return (new IntArrayList_FastUtilWrapper(new int[size]));
    }

    public IIntList list(int size, int value)
    {
        return (new IntArrayList_FastUtilWrapper(PrimitiveIntTools.createInitialized(size, value)));
    }
View Full Code Here

        return (new IntArrayList_FastUtilWrapper(PrimitiveIntTools.createInitialized(size, value)));
    }

    public IIntList list(IIntArray arr)
    {
        return (new IntArrayList_FastUtilWrapper(arr.getArray()));
    }
View Full Code Here

     * Convenience constructor for primitive arrays
     */
    public IIntList listFrom(int d)
    {
        int[] arr = PrimitiveIntTools.getIntArray(d);
        return (new IntArrayList_FastUtilWrapper(arr));
    }
View Full Code Here

     * (this one is necessary because it does not overlap with create(double[])
     */
    public IIntList listFrom(int d1, int... d2)
    {
        int[] arr = PrimitiveIntTools.concat(PrimitiveIntTools.getIntArray(d1),d2);
        return (new IntArrayList_FastUtilWrapper(arr));
    }
View Full Code Here

    /**
     * Convenience constructor for primitive arrays
     */
    public IIntList listFrom(int[] arr)
    {
        return (new IntArrayList_FastUtilWrapper(arr));
    }
View Full Code Here


    public IIntList listFrom(double[] a)
    {
        int[] res = PrimitiveIntTools.from(a);
        return (new IntArrayList_FastUtilWrapper(res));
    }
View Full Code Here


    public IIntList listFrom(float[] a)
    {
        int[] res = PrimitiveIntTools.from(a);
        return (new IntArrayList_FastUtilWrapper(res));
    }
View Full Code Here

       is returned.
    */
    public IIntList listRandomIndexes(int N, int n)
    {
        int[] res = PrimitiveIntTools.randomIndexes(N,n);
        return (new IntArrayList_FastUtilWrapper(res));
    }
View Full Code Here

    previous value by step.
     */
    public IIntList listRange(int start, int end, int step)
    {
        int[] res = PrimitiveIntTools.range(start, end, step);
        return (new IntArrayList_FastUtilWrapper(res));
    }
View Full Code Here

TOP

Related Classes of stallone.ints.IntArrayList_FastUtilWrapper

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.