Package com.dropbox.core.v2.teamlog
Class DurationLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.DurationLogInfo
Represents a time duration: unit and amount
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDurationLogInfo(TimeUnit unit, long amount) Represents a time duration: unit and amount -
Method Summary
-
Field Details
-
unit
-
amount
protected final long amount
-
-
Constructor Details
-
DurationLogInfo
Represents a time duration: unit and amount- Parameters:
unit- Time unit. Must not benull.amount- Amount of time.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUnit
Time unit.- Returns:
- value for this field, never
null.
-
getAmount
public long getAmount()Amount of time.- Returns:
- value for this field.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-