IComparator Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A comparison function, which imposes a total ordering on some collection of objects.
[Android.Runtime.Register("java/util/Comparator", "", "Java.Util.IComparatorInvoker")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public interface IComparator : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/util/Comparator", "", "Java.Util.IComparatorInvoker")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
type IComparator = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
Java documentation for java.util.Comparator
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode | (Inherited from IJavaPeerable) |
JniManagedPeerState | (Inherited from IJavaPeerable) |
JniPeerMembers | (Inherited from IJavaPeerable) |
PeerReference | (Inherited from IJavaPeerable) |
Methods
Compare(Object, Object) |
Compares its two arguments for order. |
Comparing(IFunction) |
Accepts a function that extracts a |
Comparing(IFunction, IComparator) |
Accepts a function that extracts a sort key from a type |
ComparingDouble(IToDoubleFunction) |
Accepts a function that extracts a |
ComparingInt(IToIntFunction) |
Accepts a function that extracts an |
ComparingLong(IToLongFunction) |
Accepts a function that extracts a |
Disposed() | (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() | (Inherited from IJavaPeerable) |
Equals(Object) |
Indicates whether some other object is "equal to" this comparator. |
Finalized() | (Inherited from IJavaPeerable) |
NaturalOrder() |
Returns a comparator that compares |
NullsFirst(IComparator) |
Returns a null-friendly comparator that considers |
NullsLast(IComparator) |
Returns a null-friendly comparator that considers |
Reversed() |
Returns a comparator that imposes the reverse ordering of this comparator. |
ReverseOrder() |
Returns a comparator that imposes the reverse of the <em>natural ordering</em>. |
SetJniIdentityHashCode(Int32) | (Inherited from IJavaPeerable) |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) | (Inherited from IJavaPeerable) |
ThenComparing(IComparator) |
Returns a lexicographic-order comparator with another comparator. |
ThenComparing(IFunction) |
Returns a lexicographic-order comparator with a function that
extracts a |
ThenComparing(IFunction, IComparator) |
Returns a lexicographic-order comparator with a function that
extracts a key to be compared with the given |
ThenComparingDouble(IToDoubleFunction) |
Returns a lexicographic-order comparator with a function that
extracts a |
ThenComparingInt(IToIntFunction) |
Returns a lexicographic-order comparator with a function that
extracts an |
ThenComparingLong(IToLongFunction) |
Returns a lexicographic-order comparator with a function that
extracts a |
UnregisterFromRuntime() | (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |