Code example for Map.Entry

Methods: getKey, getValue

0
		 
		entries = new HashMap<String, Double>();
	} 
	 
	public boolean addToInterval(Entry<String, Double> entry){
		return addToInterval(entry.getKey(), entry.getValue());
	} 
	 
	public boolean addToInterval(String key, double value){
		if(value > lowerBoundary && value <= upperBoundary){
			entries.put(key, value);
			return true; 
		} 
		return false; 
	} 
	 
	public int getSize(){ 
		return entries.size();
	} 
 
	public double getLowerBoundary() {