static int compact(@JobConstraint int[] constraints) {
    int result = 0;
    if (constraints == null) {
      return result;
    }
    for (int c : constraints) {
      result |= c;
    }
    return result;
  }
Compact a provided array of constraints into a single int.

@see #uncompact(int)
jobdispatcher/src/main/java/com/firebase/jobdispatcher/Constraint.java