模块 java.desktop

类 RowSorter.SortKey

java.lang.Object
javax.swing.RowSorter.SortKey
封闭类:
RowSorter<M>

public static class RowSorter.SortKey extends Object
SortKey 描述特定列的排序顺序。列索引是基于底层模型的,它可能与视图的不同。
自从:
1.6
  • 构造方法详细信息

    • SortKey

      public SortKey(int column, SortOrder  sortOrder)
      为具有指定排序顺序的指定列创建 SortKey
      参数:
      column - 列的索引,就模型而言
      sortOrder - 排序顺序
      抛出:
      IllegalArgumentException - 如果 sortOrdernull
  • 方法详情

    • getColumn

      public final int getColumn()
      返回列的索引。
      返回:
      列索引
    • getSortOrder

      public final SortOrder  getSortOrder()
      返回列的排序顺序。
      返回:
      列的排序顺序
    • hashCode

      public int hashCode()
      返回此 SortKey 的哈希码。
      重写:
      hashCode 在类 Object
      返回:
      哈希码
      参见:
    • equals

      public boolean equals(Object  o)
      如果此对象等于指定对象,则返回 true。如果指定的对象是 SortKey 并且引用相同的列和排序顺序,则这两个对象是相等的。
      重写:
      equals 在类 Object
      参数:
      o - 要比较的对象
      返回:
      如果 o 等于此 SortKey,则为真
      参见: