Class ReportedHidServStats

  • All Implemented Interfaces:
    Document

    public class ReportedHidServStats
    extends java.lang.Object
    implements Document
    • Constructor Detail

      • ReportedHidServStats

        public ReportedHidServStats​(java.lang.String fingerprint,
                                    long statsEndMillis)
    • Method Detail

      • getFingerprint

        public java.lang.String getFingerprint()
      • getStatsEndMillis

        public long getStatsEndMillis()
      • setStatsIntervalSeconds

        public void setStatsIntervalSeconds​(long statsIntervalSeconds)
      • getStatsIntervalSeconds

        public long getStatsIntervalSeconds()
      • setRendRelayedCells

        public void setRendRelayedCells​(long rendRelayedCells)
      • getRendRelayedCells

        public long getRendRelayedCells()
      • setDirOnionsSeen

        public void setDirOnionsSeen​(long dirOnionsSeen)
      • getDirOnionsSeen

        public long getDirOnionsSeen()
      • equals

        public boolean equals​(java.lang.Object otherObject)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • format

        public java.lang.String[] format()
        Description copied from interface: Document
        Returns an array of two strings with a string representation of this document.

        The first string will be used to start a group of documents, the second string will be used to represent a single document in that group. Ideally, the first string is equivalent for many documents stored in the same file, and the second string is different for those documents.

        Specified by:
        format in interface Document
      • parse

        public boolean parse​(java.lang.String[] formattedStrings)
        Description copied from interface: Document
        Initializes an object using the given array of two strings.

        These are the same two strings that the format method provides.

        Specified by:
        parse in interface Document