code: public void set(BitArray ba) {
          if (ba.size != this.size)
              throw new IllegalArgumentException();
          for (int i = 0; i < this.data.length; ++i)
              this.data[i] = ba.data[i];
      }
docs: TODO Equals to load values