DefaultSpanComparator - apache/ctakes GitHub Wiki

public enum DefaultSpanComparator implements Comparator<TextSpan>

Compares first by begin, then by end if the begins are equal.

  • Author: SPF , chip-nlp
  • Version: %I%
  • Since: 11/14/2017

@Override public int compare( final TextSpan span1, final TextSpan span2 )

Compares first by begin, then by end if the begins are equal. {@inheritDoc}

static public int compareIndices( final int begin1, final int begin2, final int end1, final int end2 )

Compares first by begin, then by end if the begins are equal.

⚠️ **GitHub.com Fallback** ⚠️