@Test public void testBitSetIsEmpty() { BitSet set = new BitSet(5); assertTrue(set.isEmpty()); }
public boolean isEmpty() { for(long packet : packets) { if(packet != 0) { return false; } } return true; }
BitSet { public boolean isEmpty() { for(long packet : packets) { if(packet != 0) { return false; } } return true; } }
BitSet { public boolean isEmpty() { for(long packet : packets) { if(packet != 0) { return false; } } return true; } BitSet(int maxElements);  BitSet(long[] packets);  BitSet(BitSet set); }
BitSet { public boolean isEmpty() { for(long packet : packets) { if(packet != 0) { return false; } } return true; } BitSet(int maxElements);  BitSet(long[] packets);  BitSet(BitSet set); long[] getPackets(); BitSet copy(); void add(int bitIndex); boolean contains(int bitIndex); void union(BitSet other); boolean isEmpty(); boolean isSuperset(BitSet other); IntSinglyLinkedList toList(); int size(); @Override boolean equals(Object obj); @Override int hashCode(); static BitSet union(BitSet set1, BitSet set2); }
BitSet { public boolean isEmpty() { for(long packet : packets) { if(packet != 0) { return false; } } return true; } BitSet(int maxElements);  BitSet(long[] packets);  BitSet(BitSet set); long[] getPackets(); BitSet copy(); void add(int bitIndex); boolean contains(int bitIndex); void union(BitSet other); boolean isEmpty(); boolean isSuperset(BitSet other); IntSinglyLinkedList toList(); int size(); @Override boolean equals(Object obj); @Override int hashCode(); static BitSet union(BitSet set1, BitSet set2);  }