Examples of toBooleanArray()


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

    @Test
    public void unboxBooleanArray() {
        Boolean[] boxed = new Boolean[]{true, true, false};
        BooleanArrayWrapper arrayWrapper = new BooleanArrayWrapper(boxed);
        final boolean[] expected = new boolean[]{true, true, false};
        Assert.assertTrue(Arrays.equals(expected, arrayWrapper.toBooleanArray()));
    }

    @Test
    public void unboxBooleanArrayWithNulls() {
        Boolean[] boxed = new Boolean[3];
View Full Code Here

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

    @Test
    public void unboxBooleanArrayWithNulls() {
        Boolean[] boxed = new Boolean[3];
        BooleanArrayWrapper arrayWrapper = new BooleanArrayWrapper(boxed);
        final boolean[] expected = new boolean[]{false, false, false};
        Assert.assertTrue(Arrays.equals(expected, arrayWrapper.toBooleanArray()));
    }

    @Test
    public void unboxByteArray() {
        Byte[] boxed = new Byte[]{42, 43, 44};
View Full Code Here

Examples of com.jacob.com.SafeArray.toBooleanArray()

   */
  public void testBooleanSafeArray() {
    boolean sourceData[] = new boolean[] { true, false, true, false };
    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromBooleanArray(sourceData);
    boolean[] extractedFromSafeArray = saUnderTest.toBooleanArray();
    for (int i = 0; i < extractedFromSafeArray.length; i++) {
      assertEquals("" + i, sourceData[i], extractedFromSafeArray[i]);
    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
        .getBoolean(2));
View Full Code Here

Examples of com.jacob.com.SafeArray.toBooleanArray()

    SafeArray ba = new SafeArray(Variant.VariantBoolean, 4);
    System.out.println("elem size:" + ba.getElemSize());
    boolean back[] = new boolean[] { true, false, true, false };
    printArray(back);
    ba.fromBooleanArray(back);
    back = ba.toBooleanArray();
    printArray(back);

    boolean b4[] = new boolean[4];
    ba.getBooleans(0, 4, b4, 0);
    printArray(b4);
View Full Code Here

Examples of com.jacob.com.SafeArray.toBooleanArray()

    ba.getBooleans(0, 4, b4, 0);
    printArray(b4);

    SafeArray ba2 = new SafeArray(Variant.VariantBoolean, 4);
    ba2.setBooleans(0, 4, b4, 0);
    back = ba2.toBooleanArray();
    printArray(back);

    // char
    System.out.println("Char");
    SafeArray ca = new SafeArray(Variant.VariantShort, 4);
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.