All pastes #902944 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-13 21:41 UTC
rendered paste body
public class HashMap<K, V> implements Map<K, V> {

	int capacity;
	int size;
	public static class Entry<K, V> implements Map.Entry<K, V> {

		K key;
		V value;

		public K getKey() {
			return key;
			
		}

		public V getValue() {
			return this.value;
			// TODO Auto-generated method stub
		}

		public V setValue(V value) {
			// TODO Auto-generated method stub
			this.value = value;
			return null;
		}
		public String toString(){
			return (this.key +" = " + this.value);
		}

	}