com.android.ddmlib.logcat
Class LogCatTimestamp

java.lang.Object
  extended by com.android.ddmlib.logcat.LogCatTimestamp

public final class LogCatTimestamp
extends java.lang.Object

Data class for timestamp information which gets reported by logcat.


Field Summary
static LogCatTimestamp ZERO
           
 
Constructor Summary
LogCatTimestamp(int month, int day, int hour, int minute, int second, int milli)
          Construct an immutable timestamp object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
static LogCatTimestamp fromString(java.lang.String timeString)
           
 boolean isBefore(LogCatTimestamp other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO

public static final LogCatTimestamp ZERO
Constructor Detail

LogCatTimestamp

public LogCatTimestamp(int month,
                       int day,
                       int hour,
                       int minute,
                       int second,
                       int milli)
Construct an immutable timestamp object.

Method Detail

fromString

public static LogCatTimestamp fromString(@NonNull
                                         java.lang.String timeString)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

isBefore

public boolean isBefore(@NonNull
                        LogCatTimestamp other)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object