Package soot.jimple.spark.geom.dataRep
Class SimpleInterval
- java.lang.Object
-
- soot.jimple.spark.geom.dataRep.SimpleInterval
-
- All Implemented Interfaces:
Comparable<SimpleInterval>
public class SimpleInterval extends Object implements Comparable<SimpleInterval>
The basic representation for an interval on the integer domain. A simple interval is a half-open structure [L, R).- Author:
- xiao
-
-
Constructor Summary
Constructors Constructor Description SimpleInterval()SimpleInterval(long l, long r)SimpleInterval(SimpleInterval o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SimpleInterval o)booleancontains(SimpleInterval o)booleanequals(Object o)inthashCode()booleanintersect(SimpleInterval o)booleanmerge(SimpleInterval o)StringtoString()
-
-
-
Constructor Detail
-
SimpleInterval
public SimpleInterval()
-
SimpleInterval
public SimpleInterval(long l, long r)
-
SimpleInterval
public SimpleInterval(SimpleInterval o)
-
-
Method Detail
-
compareTo
public int compareTo(SimpleInterval o)
- Specified by:
compareToin interfaceComparable<SimpleInterval>
-
contains
public boolean contains(SimpleInterval o)
-
merge
public boolean merge(SimpleInterval o)
-
intersect
public boolean intersect(SimpleInterval o)
-
-