Package org.apache.uima.cas.impl

# Interface FSComparator

public interface FSComparator
UNUSED V3 backwards compat only Delete REplace with Comparator<FeatureStructure> or the like. Interface to compare two feature structures.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(FeatureStructure fs1, FeatureStructure fs2)`
  Compare two FSs.

- ## Method Details

  - ### compare

    int compare(FeatureStructure fs1, FeatureStructure fs2)
    Compare two FSs.
    Parameters:
      `fs1` - First feature structure.
      `fs2` - Second feature structure.
    Returns:
      `-1`, if `fs1` is "smaller" than `fs2`; `1`, if `fs2` is smaller than `fs1`; and `0`, if `fs1` equals `fs2`.