public class ProgressInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ProgressInfo.Direction
Direction of the stream.
|
Modifier and Type | Field and Description |
---|---|
long |
currentBytes |
ProgressInfo.Direction |
direction |
java.lang.String |
fileName |
java.net.InetAddress |
peer |
long |
totalBytes |
Constructor and Description |
---|
ProgressInfo(java.net.InetAddress peer,
java.lang.String fileName,
ProgressInfo.Direction direction,
long currentBytes,
long totalBytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
ProgressInfo is considered to be equal only when all attributes except currentBytes are equal.
|
int |
hashCode() |
boolean |
isCompleted() |
java.lang.String |
toString() |
public final java.net.InetAddress peer
public final java.lang.String fileName
public final ProgressInfo.Direction direction
public final long currentBytes
public final long totalBytes
public ProgressInfo(java.net.InetAddress peer, java.lang.String fileName, ProgressInfo.Direction direction, long currentBytes, long totalBytes)
public boolean isCompleted()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation