com.h3c.util

## Class SortSpecification<T>

- java.lang.Object
- - com.h3c.util.SortSpecification<T>

- Type Parameters:
    `T` - type of the attribute to sort by.

      public class SortSpecification<T>
      extends Object

  Sort specification.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SortSpecification.SortComponent<T>` Sort specification component.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SortSpecification()` Creates a sort specification.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addSortComponent(T attribute, SortOrder sortOrder)` Appends a sort component to the collection of sort components for this specification
    `boolean` | `equals(Object obj)`
    `List<SortSpecification.SortComponent<T>>` | `getSortComponents()` Gets the specification's sort entries.
    `int` | `hashCode()`
    `String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SortSpecification

          public SortSpecification()

      Creates a sort specification.

  - ### Method Detail

    - #### addSortComponent

          public void addSortComponent(T attribute,
                              SortOrder sortOrder)

      Appends a sort component to the collection of sort components for this specification
      Parameters:
        `attribute` - attribute to sort by.
        `sortOrder` - sort direction.

    - #### getSortComponents

          public List<SortSpecification.SortComponent<T>> getSortComponents()

      Gets the specification's sort entries.
      Returns:
        the specification's sort entries.

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.