ISpliterator.Comparator Property
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.
If this Spliterator's source is #SORTED
by a Comparator
,
returns that Comparator
.
public virtual Java.Util.IComparator? Comparator { [Android.Runtime.Register("getComparator", "()Ljava/util/Comparator;", "GetGetComparatorHandler:Java.Util.ISpliterator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getComparator", "()Ljava/util/Comparator;", "GetGetComparatorHandler:Java.Util.ISpliterator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
member this.Comparator : Java.Util.IComparator
Property Value
a Comparator, or null
if the elements are sorted in the
natural order.
- Attributes
Remarks
If this Spliterator's source is #SORTED
by a Comparator
, returns that Comparator
. If the source is SORTED
in Comparable natural order, returns null
. Otherwise, if the source is not SORTED
, throws IllegalStateException
.
Java documentation for java.util.Spliterator.getComparator()
.
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.