private static boolean inRange ( Text text , Collection < Range > ranges ) { Key kCq = new Key ( text ) ; return ranges . stream ( ) . anyMatch ( r -> ! r . beforeStartKey ( kCq ) && ! r . afterEndKey ( kCq ) ) ; }
Gets a Boolean value indicating if the given value is in one of the Ranges in the given collection