public class ExtrapolatedHidServStats extends java.lang.Object implements Document
Constructor and Description |
---|
ExtrapolatedHidServStats(long statsDateMillis,
java.lang.String fingerprint)
Instantiates a new stats object using fingerprint and statistics
interval end date 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
statistics interval end date as the passed object.
|
java.lang.String[] |
format()
Returns a string representation of this object, consisting of the
statistics interval end date and the concatenation of all other
attributes.
|
double |
getExtrapolatedDirOnionsSeen() |
double |
getExtrapolatedRendRelayedCells() |
java.lang.String |
getFingerprint() |
double |
getFractionDirOnionsSeen() |
double |
getFractionRendRelayedCells() |
long |
getStatsDateMillis() |
int |
hashCode()
Returns a (hopefully unique) hash code based on this object's
fingerprint and statistics interval end date.
|
boolean |
parse(java.lang.String[] formattedStrings)
Initializes this stats object using the two provided strings that
have been produced by the format method earlier and returns whether
this operation was successful.
|
void |
setExtrapolatedDirOnionsSeen(double extrapolatedDirOnionsSeen) |
void |
setExtrapolatedRendRelayedCells(double extrapolatedRendRelayedCells) |
void |
setFractionDirOnionsSeen(double fractionDirOnionsSeen) |
void |
setFractionRendRelayedCells(double fractionRendRelayedCells) |
public ExtrapolatedHidServStats(long statsDateMillis, java.lang.String fingerprint)
public long getStatsDateMillis()
public java.lang.String getFingerprint()
public void setExtrapolatedRendRelayedCells(double extrapolatedRendRelayedCells)
public double getExtrapolatedRendRelayedCells()
public void setFractionRendRelayedCells(double fractionRendRelayedCells)
public double getFractionRendRelayedCells()
public void setExtrapolatedDirOnionsSeen(double extrapolatedDirOnionsSeen)
public double getExtrapolatedDirOnionsSeen()
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()