Code example for Hashtable

Methods: equals

0
		@Override 
        public boolean equals(Object obj) {
			if (obj instanceof MockContext) {
				MockContext theOther = (MockContext) obj;
				boolean envmtEqual = (null == prop ? null == theOther.prop
						: prop.equals(theOther.prop));
				if (!envmtEqual) {
					return false; 
				} 
 
				return true; 
			} 
            return false; 
		} 
 
		public boolean parameterEquals(Object o, Name n, Context c, Hashtable<?, ?> h) {
			Hashtable<String, Object> r = new Hashtable<String, Object>();
			if (null != o) {
				r.put("o", o);
			} 
			if (null != n) {