hasAll method

bool hasAll(
  1. int flags
)

Checks if the integer has all specified flags bits set.

Implementation

bool hasAll(int flags) {
  return (this & flags) == flags;
}