I think we can get rid of few accessors in that class, and replace
them with direct field access.
Positive features from that are (just an IMHO of course):
- Use of direct fields instead of accessor is more readable as you can never know the exact logic of accessor when looking on it (will it just return the pre-ready result or has some condition).
- Code generally is a bit shorter (please refer to the patch code).
- Less methods in interfaces.
- Currently 2 bitfields *probably* consume less memory than single int8 (that depends on structures aligment I think and I did not look close on difference for this patch). Also looks like we will not need any other flags, but even if we will, I think 1-2 new bitfields is probably more preferable than 1-2 new methods because of profits mentioned above.