Newer
Older
GeneratedDesignPatternsByDTRAM / DTRAM / src / observer / Logger.java
package observer;

import java.util.Map;

public class Logger {
	private Map.Entry<Integer, String> orcs;
	private Map.Entry<Integer, String> hobbits;
	private String value = "not started"; // init
	public void updateOrcs(Map.Entry<Integer, String> orcs) {
		this.orcs = orcs;
		value = orcs.getValue();
	}
	public void updateHobbits(Map.Entry<Integer, String> hobbits) {
		this.hobbits = hobbits;
		value = hobbits.getValue();
	}
	public String getValue() {
		return value;
	}
}