BooleanArraySeries extends BooleanBaseSeries { @Override public boolean getBoolean(int index) { if (index >= size) { throw new ArrayIndexOutOfBoundsException(index); } return data[offset + index]; } BooleanArraySeries(boolean... data);  BooleanArraySeries(boolean[] data, int offset, int size); @Override int size(); @Override boolean getBoolean(int index); @Override void copyToBoolean(boolean[] to, int fromOffset, int toOffset, int len); @Override BooleanSeries headBoolean(int len); @Override BooleanSeries tailBoolean(int len); @Override BooleanSeries rangeOpenClosedBoolean(int fromInclusive, int toExclusive); @Override BooleanSeries materializeBoolean(); @Override int countTrue(); @Override int countFalse();  }
@Test public void testGetBoolean() { BooleanArraySeries s = new BooleanArraySeries(true, false); assertEquals(true, s.getBoolean(0)); assertEquals(false, s.getBoolean(1)); }
@Test public void testGetBoolean_Offset() { BooleanArraySeries s = new BooleanArraySeries(new boolean[]{true, false, true, false}, 1, 2); assertEquals(false, s.getBoolean(0)); assertEquals(true, s.getBoolean(1)); }
@Test public void testGetBoolean_Offset_OutOfBounds() { BooleanArraySeries s = new BooleanArraySeries(new boolean[]{true, false, true, false}, 1, 2); assertThrows(ArrayIndexOutOfBoundsException.class, () -> s.getBoolean(2)); }