IPath.CompareTo(IPath) Method

Definition

Compares two abstract paths lexicographically.

[Android.Runtime.Register("compareTo", "(Ljava/nio/file/Path;)I", "GetCompareTo_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public int CompareTo (Java.Nio.FileNio.IPath? other);
[<Android.Runtime.Register("compareTo", "(Ljava/nio/file/Path;)I", "GetCompareTo_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member CompareTo : Java.Nio.FileNio.IPath -> int

Parameters

other
IPath

the path compared to this path.

Returns

Int32

zero if the argument is #equals equal to this path, a value less than zero if this path is lexicographically less than the argument, or a value greater than zero if this path is lexicographically greater than the argument

Attributes

Remarks

Java documentation for java.nio.file.Path.compareTo(java.nio.file.Path).

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.

Applies to