Advertisement
sergAccount

Untitled

Mar 21st, 2021
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app24;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class MyLongTaskResult {
  13.    
  14.     // Который содержит значение типа int и время выполнения задачи - значение типа long
  15.     private int total;
  16.     private long execTime;
  17.  
  18.     public MyLongTaskResult(int total, long execTime) {
  19.         this.total = total;
  20.         this.execTime = execTime;
  21.     }
  22.  
  23.     public int getTotal() {
  24.         return total;
  25.     }
  26.  
  27.     public void setTotal(int total) {
  28.         this.total = total;
  29.     }
  30.  
  31.     public long getExecTime() {
  32.         return execTime;
  33.     }
  34.  
  35.     public void setExecTime(long execTime) {
  36.         this.execTime = execTime;
  37.     }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement