boolean isBitSet(int bitIndex) { int mask = getMaskForBitIndex(bitIndex); return (mask & propertyBitField) != 0; }
void setBit(int bitIndex, boolean value) { int mask = getMaskForBitIndex(bitIndex); if (value) { propertyBitField |= mask; } else { propertyBitField ^= mask; } }
boolean isBitSet(int bitIndex) { int mask = getMaskForBitIndex(bitIndex); return (mask & propertyBitField) != 0; }
void setBit(int bitIndex, boolean value) { int mask = getMaskForBitIndex(bitIndex); if (value) { propertyBitField |= mask; } else { propertyBitField ^= mask; } }