org.apache.uima.cas.admin

## Interface LinearTypeOrder

-     public interface LinearTypeOrder

  Linear order on types.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | `getOrder()`
    `boolean` | `lessThan(int t1, int t2)` Compare two types.
    `boolean` | `lessThan(Type t1, Type t2)` Compare two types.

- - ### Method Detail

    - #### lessThan

          boolean lessThan(Type t1,
                           Type t2)

      Compare two types.
      Parameters:
        `t1` - type to compare
        `t2` - type to compare
      Returns:
        `true` iff `t1` is less than `t2` in this order.

    - #### lessThan

          boolean lessThan(int t1,
                           int t2)

      Compare two types.
      Parameters:
        `t1` - type to compare
        `t2` - type to compare
      Returns:
        `true` iff `t1` is less than `t2` in this order.

    - #### getOrder

          int[] getOrder()

      Returns:
        The type order as array of type codes in ascending order.

Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.