private int combineFlags ( final Pattern . Flag [ ] flags ) { int combined = 0 ; for ( Pattern . Flag f : flags ) { combined |= f . getValue ( ) ; } return combined ; }
Combines a given set of javax . validation . constraints . Pattern . Flag instances into one bitmask suitable for java . util . regex . Pattern consumption .