public class ExceptionDepthComparator extends ObjectSE implements ComparatorSE<ClassSE<? extends ThrowableSE>>
コンストラクターと説明 |
---|
ExceptionDepthComparator(ClassSE<? extends ThrowableSE> exceptionType) 指定された例外型の新しい ExceptionDepthComparator を作成します。 |
ExceptionDepthComparator(ThrowableSE exception) 指定された例外の新しい ExceptionDepthComparator を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
int | compare(ClassSE<? extends ThrowableSE> o1, ClassSE<? extends ThrowableSE> o2) |
static ClassSE<? extends ThrowableSE> | findClosestMatch(CollectionSE<ClassSE<? extends ThrowableSE>> exceptionTypes, ThrowableSE targetException) 特定のターゲット例外の特定の例外型から最も近い一致を取得します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
comparingSE, comparingSE, comparingDoubleSE, comparingIntSE, comparingLongSE, equalsSE, naturalOrderSE, nullsFirstSE, nullsLastSE, reversedSE, reverseOrderSE, thenComparingSE, thenComparingSE, thenComparingSE, thenComparingDoubleSE, thenComparingIntSE, thenComparingLongSE
public ExceptionDepthComparator(ThrowableSE exception)
exception
- 深度でソートするときに比較するターゲット例外 public ExceptionDepthComparator(ClassSE<? extends ThrowableSE> exceptionType)
exceptionType
- 深度でソートするときに比較するターゲット例外型 public int compare(ClassSE<? extends ThrowableSE> o1, ClassSE<? extends ThrowableSE> o2)
ComparatorSE<ClassSE<? extends ThrowableSE>>
の compareSE
public static ClassSE<? extends ThrowableSE> findClosestMatch(CollectionSE<ClassSE<? extends ThrowableSE>> exceptionTypes, ThrowableSE targetException)
exceptionTypes
- 例外型のコレクション targetException
- 一致を見つけるターゲット例外