edu.cmu.sun.folds
Class IndexRange.Overlap

java.lang.Object
  extended by edu.cmu.sun.folds.IndexRange.Overlap
Enclosing class:
IndexRange

public static class IndexRange.Overlap
extends java.lang.Object

An overlap describes the type and distance of overlap between two ranges. There are four basic types of matches between range A and B



Distance is also calculated for each of the overlaps: *


Nested Class Summary
static class IndexRange.Overlap.Type
           
 
Field Summary
protected  int distance
           
protected  IndexRange.Overlap.Type type
           
 
Constructor Summary
IndexRange.Overlap(IndexRange.Overlap.Type type, int distance)
           
 
Method Summary
 int getDistance()
           
 IndexRange.Overlap.Type getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected IndexRange.Overlap.Type type

distance

protected int distance
Constructor Detail

IndexRange.Overlap

public IndexRange.Overlap(IndexRange.Overlap.Type type,
                          int distance)
Method Detail

getType

public IndexRange.Overlap.Type getType()

getDistance

public int getDistance()