public class ComputedNetworkFractions extends java.lang.Object implements Document
Constructor and Description |
---|
ComputedNetworkFractions(java.lang.String fingerprint,
long validAfterMillis)
Instantiates a new fractions object using fingerprint and consensus
valid-after time which together uniquely identify the object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject)
Returns whether this object contains the same fingerprint and
consensus valid-after time as the passed object.
|
java.lang.String[] |
format()
Returns a string representation of this object, consisting of two
strings: the first string contains fingerprint and valid-after date,
the second string contains the concatenation of all other
attributes.
|
java.lang.String |
getFingerprint() |
double |
getFractionDirOnionsSeen() |
double |
getFractionRendRelayedCells() |
long |
getValidAfterMillis() |
int |
hashCode()
Returns a (hopefully unique) hash code based on this object's
fingerprint and consensus valid-after time.
|
boolean |
parse(java.lang.String[] formattedStrings)
Initializes this fractions object using the two provided strings
that have been produced by the format method earlier and returns
whether this operation was successful.
|
void |
setFractionDirOnionsSeen(double fractionDirOnionsSeen) |
void |
setFractionRendRelayedCells(double fractionRendRelayedCells) |
public ComputedNetworkFractions(java.lang.String fingerprint, long validAfterMillis)
public java.lang.String getFingerprint()
public long getValidAfterMillis()
public void setFractionRendRelayedCells(double fractionRendRelayedCells)
public double getFractionRendRelayedCells()
public void setFractionDirOnionsSeen(double fractionDirOnionsSeen)
public double getFractionDirOnionsSeen()
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String[] format()