TinyTablesElementVector implements Serializable { public TinyTablesElement get(int index) { return TinyTablesElement.getInstance(values.getBit(index)); } TinyTablesElementVector(byte[] shares, int size);  TinyTablesElementVector(int size); void setShare(int index, boolean share); TinyTablesElement get(int index); byte[] payload(); int getSize(); static RegularBitVector open(TinyTablesElementVector... vectors);  }
@Test public void testGet() { byte[] shares = new byte[] { 0x00, 0x01 }; TinyTablesElementVector vector = new TinyTablesElementVector(shares, Byte.SIZE * shares.length); for (int i = 0; i < Byte.SIZE * shares.length; i++) { assertThat(vector.get(i).getShare(), is(i == 8)); } }