Examples of toArray()


Examples of com.gs.collections.impl.list.mutable.primitive.FloatArrayList.toArray()

    public ImmutableFloatStack pop()
    {
        FloatArrayList newDelegate = FloatArrayList.newList(this.delegate);
        newDelegate.removeAtIndex(this.delegate.size() - 1);
        return FloatStacks.immutable.with(newDelegate.toArray());
    }

    public ImmutableFloatStack pop(int count)
    {
        this.checkNegativeCount(count);
View Full Code Here

Examples of com.gs.collections.impl.list.mutable.primitive.IntArrayList.toArray()

    public ImmutableIntStack pop()
    {
        IntArrayList newDelegate = IntArrayList.newList(this.delegate);
        newDelegate.removeAtIndex(this.delegate.size() - 1);
        return IntStacks.immutable.with(newDelegate.toArray());
    }

    public ImmutableIntStack pop(int count)
    {
        this.checkNegativeCount(count);
View Full Code Here

Examples of com.gs.collections.impl.list.mutable.primitive.LongArrayList.toArray()

    public ImmutableLongStack pop()
    {
        LongArrayList newDelegate = LongArrayList.newList(this.delegate);
        newDelegate.removeAtIndex(this.delegate.size() - 1);
        return LongStacks.immutable.with(newDelegate.toArray());
    }

    public ImmutableLongStack pop(int count)
    {
        this.checkNegativeCount(count);
View Full Code Here

Examples of com.gs.collections.impl.list.mutable.primitive.ShortArrayList.toArray()

    public ImmutableShortStack pop()
    {
        ShortArrayList newDelegate = ShortArrayList.newList(this.delegate);
        newDelegate.removeAtIndex(this.delegate.size() - 1);
        return ShortStacks.immutable.with(newDelegate.toArray());
    }

    public ImmutableShortStack pop(int count)
    {
        this.checkNegativeCount(count);
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.BooleanArrayWrapper.toArray()

    @Test
    public void boxBooleanArray() {
        boolean[] unboxed = new boolean[]{true, true, true};
        BooleanArrayWrapper arrayWrapper = new BooleanArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Boolean[]{true, true, true}, arrayWrapper.toArray());
    }

    @Test
    public void boxByteArray() {
        byte[] unboxed = new byte[]{42, 42, 42};
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.ByteArrayWrapper.toArray()

    @Test
    public void boxByteArray() {
        byte[] unboxed = new byte[]{42, 42, 42};
        ByteArrayWrapper arrayWrapper = new ByteArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Byte[]{42, 42, 42}, arrayWrapper.toArray());
    }

    @Test
    public void boxShortArray() {
        short[] unboxed = new short[]{42, 42, 42};
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.CharArrayWrapper.toArray()

    // array boxing tests
    @Test
    public void boxCharacterArray() {
        char[] unboxed = new char[]{'f', 'o', 'o'};
        CharArrayWrapper arrayWrapper = new CharArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Character[]{'f', 'o', 'o'}, arrayWrapper.toArray());
    }

    @Test
    public void boxBooleanArray() {
        boolean[] unboxed = new boolean[]{true, true, true};
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.DoubleArrayWrapper.toArray()

    @Test
    public void boxDoubleArray() {
        double[] unboxed = new double[]{42.0, 42.0, 42.0};
        DoubleArrayWrapper arrayWrapper = new DoubleArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Double[]{42D, 42D, 42D}, arrayWrapper.toArray());
    }

    // unboxing
    @Test
    public void unboxCharacterArray() {
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.FloatArrayWrapper.toArray()

    @Test
    public void boxFloatArray() {
        float[] unboxed = new float[]{42.0f, 42.0f, 42.0f};
        FloatArrayWrapper arrayWrapper = new FloatArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Float[]{42F, 42F, 42F}, arrayWrapper.toArray());
    }

    @Test
    public void boxDoubleArray() {
        double[] unboxed = new double[]{42.0, 42.0, 42.0};
View Full Code Here

Examples of com.humaorie.dollar.ArrayWrapper.IntegerArrayWrapper.toArray()

    @Test
    public void boxIntArray() {
        int[] unboxed = new int[]{42, 42, 42};
        IntegerArrayWrapper arrayWrapper = new IntegerArrayWrapper(unboxed);
        Assert.assertArrayEquals(new Integer[]{42, 42, 42}, arrayWrapper.toArray());
    }

    @Test
    public void boxLongArray() {
        long[] unboxed = new long[]{42L, 42L, 42L};
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.