org.jboss.resteasy.spi

## Class ResteasyProviderFactory.SortedKey<T>

- java.lang.Object
- - org.jboss.resteasy.spi.ResteasyProviderFactory.SortedKey<T>

- All Implemented Interfaces:
    Comparable<ResteasyProviderFactory.SortedKey<T>>, MediaTypeMap.Typed
  Enclosing class:
    ResteasyProviderFactory

      protected static class ResteasyProviderFactory.SortedKey<T>
      extends Object
      implements Comparable<ResteasyProviderFactory.SortedKey<T>>, MediaTypeMap.Typed

  Allow us to sort message body implementations that are more specific for their types i.e. MessageBodyWriter

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `boolean` | `isBuiltin`
    `T` | `obj`
    `Class` | `readerClass`
    `Class` | `template`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(ResteasyProviderFactory.SortedKey<T> tMessageBodyKey)`
    `Class` | `getType()`

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

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

- - ### Field Detail

    - #### readerClass

          public Class readerClass

    - #### obj

          public T obj

    - #### isBuiltin

          public boolean isBuiltin

    - #### template

          public Class template

  - ### Method Detail

    - #### compareTo

          public int compareTo(ResteasyProviderFactory.SortedKey<T> tMessageBodyKey)

      Specified by:
        `compareTo` in interface `Comparable<ResteasyProviderFactory.SortedKey<T>>`

    - #### getType

          public Class getType()

      Specified by:
        `getType` in interface `MediaTypeMap.Typed`

Copyright © 2014. All Rights Reserved.