Creates a range which represents the intersection of this range and the passed in range. The following example will print true.
Range range1 = new Range("a", "f"); Range range2 = new Range("c", "n"); Range range3 = range1.clip(range2); System.out.println(range3.equals(new Range("c", "f")));
@return the intersection
@throws IllegalArgumentException if ranges does not overlap
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.