@Test void isSuperSetOf_additionalBitsSet() { Bitlist bitlist1 = create(1, 3, 5, 7, 9); Bitlist bitlist2 = create(1, 3, 5); assertThat(bitlist1.isSuperSetOf(bitlist2)).isTrue(); }
public boolean isSuperSetOf(final Bitlist other) { return other.streamAllSetBits().allMatch(this::getBit); }
Bitlist { public boolean isSuperSetOf(final Bitlist other) { return other.streamAllSetBits().allMatch(this::getBit); } }
Bitlist { public boolean isSuperSetOf(final Bitlist other) { return other.streamAllSetBits().allMatch(this::getBit); } Bitlist(int arraySize, long maxSize);  Bitlist(Bitlist bitlist); private  Bitlist(int size, BitSet data, long maxSize); }
Bitlist { public boolean isSuperSetOf(final Bitlist other) { return other.streamAllSetBits().allMatch(this::getBit); } Bitlist(int arraySize, long maxSize);  Bitlist(Bitlist bitlist); private  Bitlist(int size, BitSet data, long maxSize); void setBit(int i); void setBits(int... indexes); boolean getBit(int i); int getBitCount(); boolean intersects(Bitlist other); boolean isSuperSetOf(final Bitlist other); List<Integer> getAllSetBits(); IntStream streamAllSetBits(); void setAllBits(Bitlist other); long getMaxSize(); int getCurrentSize(); @SuppressWarnings("NarrowingCompoundAssignment") Bytes serialize(); static int sszSerializationLength(final int size); static Bitlist fromBytes(Bytes bytes, long maxSize); Bitlist copy(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Bitlist { public boolean isSuperSetOf(final Bitlist other) { return other.streamAllSetBits().allMatch(this::getBit); } Bitlist(int arraySize, long maxSize);  Bitlist(Bitlist bitlist); private  Bitlist(int size, BitSet data, long maxSize); void setBit(int i); void setBits(int... indexes); boolean getBit(int i); int getBitCount(); boolean intersects(Bitlist other); boolean isSuperSetOf(final Bitlist other); List<Integer> getAllSetBits(); IntStream streamAllSetBits(); void setAllBits(Bitlist other); long getMaxSize(); int getCurrentSize(); @SuppressWarnings("NarrowingCompoundAssignment") Bytes serialize(); static int sszSerializationLength(final int size); static Bitlist fromBytes(Bytes bytes, long maxSize); Bitlist copy(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }