package pattern.builder;

public class ComputerKit {
	private String processor;
	private String RAM;
	private String motherBoard;
	private String graphic;
	
	public String getProcessor() {
		return processor;
	}
	public void setProcessor(String processor) {
		this.processor = processor;
	}
	public String getRAM() {
		return RAM;
	}
	public void setRAM(String rAM) {
		RAM = rAM;
	}
	public String getMotherBoard() {
		return motherBoard;
	}
	public void setMotherBoard(String motherBoard) {
		this.motherBoard = motherBoard;
	}
	public String getGraphic() {
		return graphic;
	}
	public void setGraphic(String graphic) {
		this.graphic = graphic;
	}
	public void showAll() {
		if (processor != null) {
			System.out.println(getProcessor());
		}
		if (processor != null) {
			System.out.println(getRAM());
		}
		if (processor != null) {
			System.out.println(getMotherBoard());
		}
		if (processor != null) {
			System.out.println(getGraphic());
		}
	}
}
