static Range < Long > range ( long start , long end ) { return Range . closed ( start , end ) . canonical ( DiscreteDomain . longs ( ) ) ; }
Returns a canonical range that can be added to the internal range set . Only ranges returned by this method can be added to the range set otherwise range operations like contains may yield unexpected results . Consult the Guava doc on Range for details .