public override bool LessThan(System.Object o1, System.Object o2) { SpansCell spans1 = (SpansCell)o1; SpansCell spans2 = (SpansCell)o2; if (spans1.Doc() == spans2.Doc()) { return(NearSpansOrdered.DocSpansOrdered(spans1, spans2)); } else { return(spans1.Doc() < spans2.Doc()); } }
private void InitBlock(NearSpansOrdered enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public AnonymousClassComparator(NearSpansOrdered enclosingInstance) { InitBlock(enclosingInstance); }