aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/Range.java
blob: 5f2de7ece43748460d015771b94396233c51b7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.libmailcore;

public class Range {
    public long location;
    public long length;
    
    public Range() {}
    public Range(long aLocation, long aLength)
    {
        location = aLocation;
        length = aLength;
    }
    
    public native IndexSet removeRange(Range otherRange);
    public native IndexSet union(Range otherRange);
    public native Range intersection(Range otherRange);
    public native boolean hasIntersection(Range otherRange);
    public native long leftBound();
    public native long rightBound();
    public native String toString();
    
    public static native Range rangeWithString(String rangeString);
}