Class UsageRecord

  • All Implemented Interfaces:

    
    public class UsageRecord<T extends Enum<T>>
    
                        

    A Usage Record represents a single unit of usage information reported by a UsageReporter, it contains a Date, UsageInfo, and a user defined event implemented as an Enum instance.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      UsageRecord(T event, Date date, UsageInfo info) Constructs a Usage Record with date, user defined event, and a usage info that contains event related properties.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T getEvent() Returns a user defined event.
      Date getDate() Returns the date of the record.
      UsageInfo getInfo() Returns the usage info of this record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsageRecord

        UsageRecord(T event, Date date, UsageInfo info)
        Constructs a Usage Record with date, user defined event, and a usage info that contains event related properties.
        Parameters:
        event - a user defined event
        date - the date this record is reported
        info - a usage info object
    • Method Detail

      • getEvent

        @NonNull() T getEvent()

        Returns a user defined event.

      • getDate

        @NonNull() Date getDate()

        Returns the date of the record.