public class FileRequestDeadline
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GracePeriod |
allowLateUploads |
protected java.util.Date |
deadline |
Constructor and Description |
---|
FileRequestDeadline(java.util.Date deadline)
None
|
FileRequestDeadline(java.util.Date deadline,
GracePeriod allowLateUploads) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
GracePeriod |
getAllowLateUploads()
If set, allow uploads after the deadline has passed.
|
java.util.Date |
getDeadline()
The deadline for this file request.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.util.Date deadline
protected final GracePeriod allowLateUploads
public FileRequestDeadline(java.util.Date deadline, GracePeriod allowLateUploads)
deadline
- The deadline for this file request. Must not be null
.allowLateUploads
- If set, allow uploads after the deadline has
passed. These uploads will be marked overdue.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileRequestDeadline(java.util.Date deadline)
The default values for unset fields will be used.
deadline
- The deadline for this file request. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.Date getDeadline()
null
.public GracePeriod getAllowLateUploads()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.