IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Runtime.ExceptionTableEntryComparer Class Referencesealed

Implements the IComparer<T> interface for ExceptionTableEntry. More...

Inheritance diagram for IKVM.Runtime.ExceptionTableEntryComparer:

Public Member Functions

int Compare (ExceptionTableEntry e1, ExceptionTableEntry e2)
 

Detailed Description

Implements the IComparer<T> interface for ExceptionTableEntry.

Definition at line 34 of file ExceptionTableEntryComparer.cs.

Member Function Documentation

◆ Compare()

int IKVM.Runtime.ExceptionTableEntryComparer.Compare ( ExceptionTableEntry e1,
ExceptionTableEntry e2 )

Definition at line 38 of file ExceptionTableEntryComparer.cs.

39 {
40 if (e1.startIndex < e2.startIndex)
41 return -1;
42
43 if (e1.startIndex == e2.startIndex)
44 {
45 if (e1.endIndex == e2.endIndex)
46 {
47 if (e1.ordinal > e2.ordinal)
48 return -1;
49
50 if (e1.ordinal == e2.ordinal)
51 return 0;
52
53 return 1;
54 }
55
56 if (e1.endIndex > e2.endIndex)
57 return -1;
58 }
59
60 return 1;
61 }

The documentation for this class was generated from the following file: