public class BeanOrderComparator extends Object implements Comparator<Object>, Serializable
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
BeanOrderComparator(List<BeanOrder> orders)
コンストラクタです。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
compare(Object o1,
Object o2) |
static void |
sort(List<?> beans,
List<BeanOrder> orders)
指定された並び替え条件が示す順序に従って、指定されたリストをソートします。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprotected BeanOrderComparator(List<BeanOrder> orders)
orders - 並び替え条件IllegalArgumentException - orders が null の場合public int compare(Object o1, Object o2)
compare インタフェース内 Comparator<Object>public static void sort(List<?> beans, List<BeanOrder> orders)
beans - ソートされるリストorders - 並び替え条件IllegalArgumentException - orders が null の場合Collections.sort(List, Comparator)Copyright © 2009–2014 OrangeSignal.com. All rights reserved.