@Override
	public boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final BitArray other = (BitArray) obj;
		if (!Arrays.equals(bits, other.bits)) {
			return false;
		}
		if (lastBit != other.lastBit) {
			return false;
		}
		if (lastByte != other.lastByte) {
			return false;
		}
		return true;
	}