Class InvoiceGenerator.TaskRow

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    InvoiceGenerator

    class InvoiceGenerator.TaskRow
    extends java.lang.Object
    implements java.lang.Comparable
    Comparable object representing one task in the summary on invoice. It has its name and total duration of all tasks with the same name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long duration  
      (package private) java.lang.String sortBy  
      (package private) java.lang.String task  
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskRow​(Task task, java.lang.String sortBy)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object object)  
      (package private) long getDuration()  
      (package private) java.lang.String getTask()  
      (package private) void includeTask​(Task task)  
      • Methods inherited from class java.lang.Object

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

      • task

        java.lang.String task
      • duration

        long duration
      • sortBy

        java.lang.String sortBy
    • Constructor Detail

      • TaskRow

        TaskRow​(Task task,
                java.lang.String sortBy)
    • Method Detail

      • includeTask

        void includeTask​(Task task)
      • getTask

        java.lang.String getTask()
      • getDuration

        long getDuration()
      • compareTo

        public int compareTo​(java.lang.Object object)
        Specified by:
        compareTo in interface java.lang.Comparable