1 Clazz.load(["java.util.Map"],"java.util.MapEntry",null,function(){
\r
2 c$=Clazz.decorateAsClass(function(){
\r
5 Clazz.instantialize(this,arguments);
\r
6 },java.util,"MapEntry",null,[java.util.Map.Entry,Cloneable]);
\r
7 Clazz.makeConstructor(c$,
\r
11 Clazz.makeConstructor(c$,
\r
12 function(theKey,theValue){
\r
14 this.value=theValue;
\r
16 Clazz.defineMethod(c$,"clone",
\r
19 return Clazz.superCall(this,java.util.MapEntry,"clone",[]);
\r
21 if(Clazz.instanceOf(e,CloneNotSupportedException)){
\r
28 Clazz.overrideMethod(c$,"equals",
\r
32 }if(Clazz.instanceOf(object,java.util.Map.Entry)){
\r
34 return(this.key==null?entry.getKey()==null:this.key.equals(entry.getKey()))&&(this.value==null?entry.getValue()==null:this.value.equals(entry.getValue()));
\r
37 Clazz.overrideMethod(c$,"getKey",
\r
41 Clazz.overrideMethod(c$,"getValue",
\r
45 Clazz.overrideMethod(c$,"hashCode",
\r
47 return(this.key==null?0:this.key.hashCode())^(this.value==null?0:this.value.hashCode());
\r
49 Clazz.overrideMethod(c$,"setValue",
\r
51 var result=this.value;
\r
55 Clazz.overrideMethod(c$,"toString",
\r
57 return this.key+"="+this.value;
\r
59 Clazz.declareInterface(java.util.MapEntry,"Type");
\r