Package ghidra.program.model.data

# Class CompositeInternal.OrdinalComparator

java.lang.Object
ghidra.program.model.data.CompositeInternal.OrdinalComparator

All Implemented Interfaces:
  `Comparator<Object>`

Enclosing interface:
  CompositeInternal

public static class CompositeInternal.OrdinalComparator extends Object implements Comparator<Object>
`OrdinalComparator` provides ability to compare an Integer ordinal with a DataTypeComponent object. The ordinal will be consider equal (0) if the component corresponds to the specified ordinal.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final CompositeInternal.OrdinalComparator`
  `INSTANCE`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OrdinalComparator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(Object o1, Object o2)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Comparator

  `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- ## Field Details

  - ### INSTANCE

    public static final CompositeInternal.OrdinalComparator INSTANCE

- ## Constructor Details

  - ### OrdinalComparator

    public OrdinalComparator()

- ## Method Details

  - ### compare

    public int compare(Object o1, Object o2)
    Specified by:
      `compare` in interface `Comparator<Object>`