Skip to content

Instantly share code, notes, and snippets.

View prajithakula's full-sized avatar

Prajitha Kulendran prajithakula

View GitHub Profile
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ChainOfResponsibility;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ChainOfResponsibility;
/**
*
public static void main(String[] args) {
TeamLeader teamLeader = new TeamLeader();
ProjectLeader projectLeader = new ProjectLeader();
HR hr = new HR();
Manager manager = new Manager();
teamLeader.setSuperVisor(projectLeader);
projectLeader.setSuperVisor(hr);
hr.setSuperVisor(manager);
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Builder;
import java.util.ArrayList;
import java.util.List;