public static long length ( final Range < Long > range ) { checkClosedOpen ( range ) ; return Math . max ( 0L , range . upperEndpoint ( ) - range . lowerEndpoint ( ) ) ; }
Return the length of the specified range .