Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.LongArrayWrapper.toLongArray()


    @Test
    public void unboxLongArray() {
        final Long[] boxed = {null};
        final long[] unboxed = {0};
        final LongArrayWrapper arrayWrapper = new LongArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toLongArray());
    }

    @Test
    public void unboxLongArrayWithNulls() {
        final Long[] boxed = {null};
View Full Code Here


    @Test
    public void unboxLongArrayWithNulls() {
        final Long[] boxed = {null};
        final long[] unboxed = {0};
        final LongArrayWrapper arrayWrapper = new LongArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toLongArray());
    }

    @Test
    public void unboxFloatArray() {
        final Float[] boxed = {42.0f};
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.