X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FMapEntry.js;fp=site%2Fswingjs%2Fj2s%2Fjava%2Futil%2FMapEntry.js;h=c2779fdeaa28cef81801239e8f83567e8c56919a;hp=3d56f66779c5f4211dddd1e8153ca0eb6ad31202;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/java/util/MapEntry.js b/site/swingjs/j2s/java/util/MapEntry.js index 3d56f66..c2779fd 100644 --- a/site/swingjs/j2s/java/util/MapEntry.js +++ b/site/swingjs/j2s/java/util/MapEntry.js @@ -1,60 +1,60 @@ -Clazz.load(["java.util.Map"],"java.util.MapEntry",null,function(){ -c$=Clazz.decorateAsClass(function(){ -this.key=null; -this.value=null; -Clazz.instantialize(this,arguments); -},java.util,"MapEntry",null,[java.util.Map.Entry,Cloneable]); -Clazz.makeConstructor(c$, -function(theKey){ -this.key=theKey; -},"~O"); -Clazz.makeConstructor(c$, -function(theKey,theValue){ -this.key=theKey; -this.value=theValue; -},"~O,~O"); -Clazz.defineMethod(c$,"clone", -function(){ -try{ -return Clazz.superCall(this,java.util.MapEntry,"clone",[]); -}catch(e){ -if(Clazz.instanceOf(e,CloneNotSupportedException)){ -return null; -}else{ -throw e; -} -} -}); -Clazz.overrideMethod(c$,"equals", -function(object){ -if(this===object){ -return true; -}if(Clazz.instanceOf(object,java.util.Map.Entry)){ -var entry=object; -return(this.key==null?entry.getKey()==null:this.key.equals(entry.getKey()))&&(this.value==null?entry.getValue()==null:this.value.equals(entry.getValue())); -}return false; -},"~O"); -Clazz.overrideMethod(c$,"getKey", -function(){ -return this.key; -}); -Clazz.overrideMethod(c$,"getValue", -function(){ -return this.value; -}); -Clazz.overrideMethod(c$,"hashCode", -function(){ -return(this.key==null?0:this.key.hashCode())^(this.value==null?0:this.value.hashCode()); -}); -Clazz.overrideMethod(c$,"setValue", -function(object){ -var result=this.value; -this.value=object; -return result; -},"~O"); -Clazz.overrideMethod(c$,"toString", -function(){ -return this.key+"="+this.value; -}); -Clazz.declareInterface(java.util.MapEntry,"Type"); -}); +Clazz.load(["java.util.Map"],"java.util.MapEntry",null,function(){ +c$=Clazz.decorateAsClass(function(){ +this.key=null; +this.value=null; +Clazz.instantialize(this,arguments); +},java.util,"MapEntry",null,[java.util.Map.Entry,Cloneable]); +Clazz.makeConstructor(c$, +function(theKey){ +this.key=theKey; +},"~O"); +Clazz.makeConstructor(c$, +function(theKey,theValue){ +this.key=theKey; +this.value=theValue; +},"~O,~O"); +Clazz.defineMethod(c$,"clone", +function(){ +try{ +return Clazz.superCall(this,java.util.MapEntry,"clone",[]); +}catch(e){ +if(Clazz.instanceOf(e,CloneNotSupportedException)){ +return null; +}else{ +throw e; +} +} +}); +Clazz.overrideMethod(c$,"equals", +function(object){ +if(this===object){ +return true; +}if(Clazz.instanceOf(object,java.util.Map.Entry)){ +var entry=object; +return(this.key==null?entry.getKey()==null:this.key.equals(entry.getKey()))&&(this.value==null?entry.getValue()==null:this.value.equals(entry.getValue())); +}return false; +},"~O"); +Clazz.overrideMethod(c$,"getKey", +function(){ +return this.key; +}); +Clazz.overrideMethod(c$,"getValue", +function(){ +return this.value; +}); +Clazz.overrideMethod(c$,"hashCode", +function(){ +return(this.key==null?0:this.key.hashCode())^(this.value==null?0:this.value.hashCode()); +}); +Clazz.overrideMethod(c$,"setValue", +function(object){ +var result=this.value; +this.value=object; +return result; +},"~O"); +Clazz.overrideMethod(c$,"toString", +function(){ +return this.key+"="+this.value; +}); +Clazz.declareInterface(java.util.MapEntry,"Type"); +});