SHARE
TWEET

Untitled

a guest Apr 18th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package edu.ufp.inf.lp2_aed2.project;
  2. import algs4.RedBlackBST;
  3.  
  4. public class Historic {
  5.  
  6.   private RedBlackBST<Integer,Historic> historics= new RedBlackBST<>();
  7.   private RedBlackBST<Integer,Company> companies= new RedBlackBST<>();
  8.  
  9.   public Date startDate;
  10.  
  11.   public Date endDate;
  12.  
  13.   public String job;
  14.  
  15.   public Company company;
  16.  
  17.  
  18. }
  19.  
  20. public  void addHistoric(Company c,Historic a){
  21.  
  22.   for (int key : companies.keys())
  23.     if (companies.get(key).getName().compareTo(c.getName())==0)
  24.  
  25.     {
  26.       historics.put(c.getIdCompany(), a);
  27.              
  28.  
  29. }
  30. }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top