Udostępnij za pośrednictwem


FileTime.CompareTo(FileTime) Method

Definition

Compares the value of two FileTime objects for order.

[Android.Runtime.Register("compareTo", "(Ljava/nio/file/attribute/FileTime;)I", "", ApiSince=26)]
public int CompareTo (Java.Nio.FileNio.Attributes.FileTime? other);
[<Android.Runtime.Register("compareTo", "(Ljava/nio/file/attribute/FileTime;)I", "", ApiSince=26)>]
member this.CompareTo : Java.Nio.FileNio.Attributes.FileTime -> int

Parameters

other
FileTime

the other FileTime to be compared

Returns

0 if this FileTime is equal to other, a value less than 0 if this FileTime represents a time that is before other, and a value greater than 0 if this FileTime represents a time that is after other

Attributes

Remarks

Compares the value of two FileTime objects for order.

Java documentation for java.nio.file.attribute.FileTime.compareTo(java.nio.file.attribute.FileTime).

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