public class FileRequestDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
assetIndex |
protected FileRequestDeadline |
deadline |
Constructor and Description |
---|
FileRequestDetails(long assetIndex)
File request details
|
FileRequestDetails(long assetIndex,
FileRequestDeadline deadline)
File request details
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getAssetIndex()
Asset position in the Assets list.
|
FileRequestDeadline |
getDeadline()
File request deadline.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final long assetIndex
protected final FileRequestDeadline deadline
public FileRequestDetails(long assetIndex, FileRequestDeadline deadline)
assetIndex
- Asset position in the Assets list.deadline
- File request deadline. Might be missing due to
historical data gap.public FileRequestDetails(long assetIndex)
The default values for unset fields will be used.
assetIndex
- Asset position in the Assets list.public long getAssetIndex()
public FileRequestDeadline getDeadline()
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.