public static boolean containsUid ( IdRange [ ] idRanges , long uid ) { if ( null != idRanges && idRanges . length > 0 ) { for ( IdRange range : idRanges ) { if ( range . includes ( uid ) ) { return true ; } } } return false ; }
Checks if ranges contain the uid