public static int setPrivate ( int modifier , boolean b ) { if ( b ) { return ( modifier | PRIVATE ) & ( ~ PUBLIC & ~ PROTECTED ) ; } else { return modifier & ~ PRIVATE ; } }
When set private the modifier is cleared from being public or protected .