temirlan100

Untitled

Dec 2nd, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.28 KB | None | 0 0
  1. public class RestockEvent {
  2.     private String eventId;
  3.     private String productId;
  4.     private int quantity;
  5.     private String supplier;
  6.     private long timestamp;
  7.  
  8.     public RestockEvent() {
  9.     }
  10.  
  11.     public RestockEvent(String eventId, String productId, int quantity, String supplier, long timestamp) {
  12.         this.eventId = eventId;
  13.         this.productId = productId;
  14.         this.quantity = quantity;
  15.         this.supplier = supplier;
  16.         this.timestamp = timestamp;
  17.     }
  18.  
  19.     public String getEventId() {
  20.         return eventId;
  21.     }
  22.  
  23.     public void setEventId(String eventId) {
  24.         this.eventId = eventId;
  25.     }
  26.  
  27.     public String getProductId() {
  28.         return productId;
  29.     }
  30.  
  31.     public void setProductId(String productId) {
  32.         this.productId = productId;
  33.     }
  34.  
  35.     public int getQuantity() {
  36.         return quantity;
  37.     }
  38.  
  39.     public void setQuantity(int quantity) {
  40.         this.quantity = quantity;
  41.     }
  42.  
  43.     public String getSupplier() {
  44.         return supplier;
  45.     }
  46.  
  47.     public void setSupplier(String supplier) {
  48.         this.supplier = supplier;
  49.     }
  50.  
  51.     public long getTimestamp() {
  52.         return timestamp;
  53.     }
  54.  
  55.     public void setTimestamp(long timestamp) {
  56.         this.timestamp = timestamp;
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment