public static String posBitMask(final long bits){
  return String.valueOf(((0xFFFFFFFFL << bits) & 0xFFFFFFFFL) ^ 0xFFFFFFFFL);
}

public static String posBitMask ( final long bits ) { return String . valueOf ( ( ( 0xFFFFFFFFL << bits ) & 0xFFFFFFFFL ) ^ 0xFFFFFFFFL ) ; }
mask function for creating 0x7f masks
