Lines Matching refs:bit
86 validFlag(int bit) {
87 return (bit >= 0 && bit <= 0xF && Flags.isFlag(bit));
91 checkFlag(int bit) {
92 if (!validFlag(bit))
93 throw new IllegalArgumentException("invalid flag bit " + bit);
101 setFlag(int bit) {
102 checkFlag(bit);
104 flags |= (1 << (15 - bit));
112 unsetFlag(int bit) {
113 checkFlag(bit);
115 flags &= ~(1 << (15 - bit));
123 getFlag(int bit) {
124 checkFlag(bit);
126 return (flags & (1 << (15 - bit))) != 0;