Interface Ordered

All Known Subinterfaces:
BulkTypeConverters, CamelClusterService, CamelContextCustomizer, CamelPreemptiveClusterService, ComponentCustomizer, DataFormatCustomizer, HealthCheck, LanguageCustomizer, ManagementInterceptStrategy.InstrumentationProcessor<T>, ServiceRegistry

public interface Ordered
Interface to be implemented by objects that should be orderable, such as with a Collection.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The highest precedence
    static final int
    The lowest precedence
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the order.
  • Field Details

  • Method Details

    • getOrder

      int getOrder()
      Gets the order.

      Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then use Integer.MAX_VALUE or eg LOWEST.

      Returns:
      the order