1 //BH note: a declared static superclass must come before a static class referencing it
3 Clazz.load(["java.util.AbstractList","$.AbstractMap","$.AbstractSet","$.Collection","$.Iterator","$.List","$.ListIterator","$.Map","$.RandomAccess","$.Set","$.SortedMap","$.SortedSet","java.lang.NullPointerException","$.UnsupportedOperationException","java.lang.reflect.Array"],"java.util.Collections",["java.lang.ArrayIndexOutOfBoundsException","$.ClassCastException","$.IllegalArgumentException","$.IndexOutOfBoundsException","java.util.ArrayList","$.Arrays","$.Enumeration","java.util.Map.Entry","java.util.NoSuchElementException","$.Random"],function(){
4 c$=Clazz.declareType(java.util,"Collections");
5 c$.binarySearch=Clazz.defineMethod(c$,"binarySearch",
8 throw new NullPointerException();
12 if(!(Clazz.instanceOf(list,java.util.RandomAccess))){
13 var it=list.listIterator();
16 if((result=key.compareTo(it.next()))<=0){
18 return it.previousIndex();
19 }return-it.previousIndex()-1;
28 if((result=key.compareTo(list.get(mid)))>0){
35 return-mid-(result<0?1:2);
36 },"java.util.List,~O");
37 c$.binarySearch=Clazz.defineMethod(c$,"binarySearch",
38 function(list,object,comparator){
40 return java.util.Collections.binarySearch(list,object);
41 }if(!(Clazz.instanceOf(list,java.util.RandomAccess))){
42 var it=list.listIterator();
45 if((result=comparator.compare(object,it.next()))<=0){
47 return it.previousIndex();
48 }return-it.previousIndex()-1;
57 if((result=comparator.compare(object,list.get(mid)))>0){
64 return-mid-(result<0?1:2);
65 },"java.util.List,~O,java.util.Comparator");
66 c$.copy=Clazz.defineMethod(c$,"copy",
67 function(destination,source){
68 if(destination.size()<source.size()){
69 throw new ArrayIndexOutOfBoundsException();
70 }var srcIt=source.iterator();
71 var destIt=destination.listIterator();
72 while(srcIt.hasNext()){
76 if(Clazz.instanceOf(e,java.util.NoSuchElementException)){
77 throw new ArrayIndexOutOfBoundsException();
82 destIt.set(srcIt.next());
84 },"java.util.List,java.util.List");
85 c$.enumeration=Clazz.defineMethod(c$,"enumeration",
89 if (!Clazz.isClassDefined("java.util.Collections$1"))
90 java.util.Collections.$Collections$1$(c);
92 var x = Clazz.innerTypeInstance(java.util.Collections$1,this,null);
95 },"java.util.Collection");
97 c$.fill=Clazz.defineMethod(c$,"fill",
98 function(list,object){
99 var it=list.listIterator();
104 },"java.util.List,~O");
105 c$.max=Clazz.defineMethod(c$,"max",
106 function(collection){
107 var it=collection.iterator();
111 if(max.compareTo(next)<0){
115 },"java.util.Collection");
116 c$.max=Clazz.defineMethod(c$,"max",
117 function(collection,comparator){
118 var it=collection.iterator();
122 if(comparator.compare(max,next)<0){
126 },"java.util.Collection,java.util.Comparator");
127 c$.min=Clazz.defineMethod(c$,"min",
128 function(collection){
129 var it=collection.iterator();
133 if(min.compareTo(next)>0){
137 },"java.util.Collection");
138 c$.min=Clazz.defineMethod(c$,"min",
139 function(collection,comparator){
140 var it=collection.iterator();
144 if(comparator.compare(min,next)>0){
148 },"java.util.Collection,java.util.Comparator");
149 c$.nCopies=Clazz.defineMethod(c$,"nCopies",
150 function(length,object){
151 return new java.util.Collections.CopiesList(length,object);
153 c$.reverse=Clazz.defineMethod(c$,"reverse",
155 var size=list.size();
156 var front=list.listIterator();
157 var back=list.listIterator(size);
158 for(var i=0;i<Math.floor(size/2);i++){
159 var frontNext=front.next();
160 var backPrev=back.previous();
165 c$.reverseOrder=Clazz.defineMethod(c$,"reverseOrder",
167 return new java.util.Collections.ReverseComparator();
169 c$.reverseOrder=Clazz.defineMethod(c$,"reverseOrder",
172 return java.util.Collections.reverseOrder();
173 }return new java.util.Collections.ReverseComparatorWithComparator(c);
174 },"java.util.Comparator");
175 c$.shuffle=Clazz.defineMethod(c$,"shuffle",
177 java.util.Collections.shuffle(list,new java.util.Random());
179 c$.shuffle=Clazz.defineMethod(c$,"shuffle",
180 function(list,random){
181 if(!(Clazz.instanceOf(list,java.util.RandomAccess))){
182 var array=list.toArray();
183 for(var i=array.length-1;i>0;i--){
184 var index=random.nextInt()%(i+1);
188 array[i]=array[index];
192 var it=list.listIterator();
199 for(var i=rawList.size()-1;i>0;i--){
200 var index=random.nextInt()%(i+1);
203 }rawList.set(index,rawList.set(i,rawList.get(index)));
205 }},"java.util.List,java.util.Random");
206 c$.singleton=Clazz.defineMethod(c$,"singleton",
208 return new java.util.Collections.SingletonSet(object);
210 c$.singletonList=Clazz.defineMethod(c$,"singletonList",
212 return new java.util.Collections.SingletonList(object);
214 c$.singletonMap=Clazz.defineMethod(c$,"singletonMap",
216 return new java.util.Collections.SingletonMap(key,value);
218 c$.sort=Clazz.defineMethod(c$,"sort",
220 var array=list.toArray();
221 java.util.Arrays.sort(array);
223 var it=list.listIterator();
229 c$.sort=Clazz.defineMethod(c$,"sort",
230 function(list,comparator){
231 var array=list.toArray(new Array(list.size()));
232 java.util.Arrays.sort(array,comparator);
234 var it=list.listIterator();
239 },"java.util.List,java.util.Comparator");
240 c$.swap=Clazz.defineMethod(c$,"swap",
241 function(list,index1,index2){
243 throw new NullPointerException();
247 rawList.set(index2,rawList.set(index1,rawList.get(index2)));
248 },"java.util.List,~N,~N");
249 c$.replaceAll=Clazz.defineMethod(c$,"replaceAll",
250 function(list,obj,obj2){
253 while((index=list.indexOf(obj))>-1){
255 list.set(index,obj2);
258 },"java.util.List,~O,~O");
259 c$.rotate=Clazz.defineMethod(c$,"rotate",
262 var size=list.size();
269 normdist=size-((dist%size)*(-1));
270 }if(normdist==0||normdist==size){
272 }if(Clazz.instanceOf(list,java.util.RandomAccess)){
273 var temp=list.get(0);
276 for(var i=0;i<size;i++){
277 index=(index+normdist)%size;
278 temp=list.set(index,temp);
279 if(index==beginIndex){
281 temp=list.get(beginIndex);
284 var divideIndex=(size-normdist)%size;
285 var sublist1=list.subList(0,divideIndex);
286 var sublist2=list.subList(divideIndex,size);
287 java.util.Collections.reverse(sublist1);
288 java.util.Collections.reverse(sublist2);
289 java.util.Collections.reverse(list);
290 }},"java.util.List,~N");
291 c$.indexOfSubList=Clazz.defineMethod(c$,"indexOfSubList",
292 function(list,sublist){
293 var size=list.size();
294 var sublistSize=sublist.size();
295 if(sublistSize>size){
299 }var firstObj=sublist.get(0);
300 var index=list.indexOf(firstObj);
303 }while(index<size&&(size-index>=sublistSize)){
304 var listIt=list.listIterator(index);
305 if((firstObj==null)?listIt.next()==null:firstObj.equals(listIt.next())){
306 var sublistIt=sublist.listIterator(1);
308 while(sublistIt.hasNext()){
309 var element=sublistIt.next();
310 if(!listIt.hasNext()){
312 }if((element==null)?listIt.next()!=null:!element.equals(listIt.next())){
321 },"java.util.List,java.util.List");
322 c$.lastIndexOfSubList=Clazz.defineMethod(c$,"lastIndexOfSubList",
323 function(list,sublist){
324 var sublistSize=sublist.size();
325 var size=list.size();
326 if(sublistSize>size){
330 }var lastObj=sublist.get(sublistSize-1);
331 var index=list.lastIndexOf(lastObj);
332 while((index>-1)&&(index+1>=sublistSize)){
333 var listIt=list.listIterator(index+1);
334 if((lastObj==null)?listIt.previous()==null:lastObj.equals(listIt.previous())){
335 var sublistIt=sublist.listIterator(sublistSize-1);
337 while(sublistIt.hasPrevious()){
338 var element=sublistIt.previous();
339 if(!listIt.hasPrevious()){
341 }if((element==null)?listIt.previous()!=null:!element.equals(listIt.previous())){
346 return listIt.nextIndex();
350 },"java.util.List,java.util.List");
351 c$.list=Clazz.defineMethod(c$,"list",
352 function(enumeration){
353 var list=new java.util.ArrayList();
354 while(enumeration.hasMoreElements()){
355 list.add(enumeration.nextElement());
358 },"java.util.Enumeration");
359 c$.synchronizedCollection=Clazz.defineMethod(c$,"synchronizedCollection",
360 function(collection){
361 if(collection==null){
362 throw new NullPointerException();
363 }return new java.util.Collections.SynchronizedCollection(collection);
364 },"java.util.Collection");
365 c$.synchronizedList=Clazz.defineMethod(c$,"synchronizedList",
368 throw new NullPointerException();
369 }if(Clazz.instanceOf(list,java.util.RandomAccess)){
370 return new java.util.Collections.SynchronizedRandomAccessList(list);
371 }return new java.util.Collections.SynchronizedList(list);
373 c$.synchronizedMap=Clazz.defineMethod(c$,"synchronizedMap",
376 throw new NullPointerException();
377 }return new java.util.Collections.SynchronizedMap(map);
379 c$.synchronizedSet=Clazz.defineMethod(c$,"synchronizedSet",
382 throw new NullPointerException();
383 }return new java.util.Collections.SynchronizedSet(set);
385 c$.synchronizedSortedMap=Clazz.defineMethod(c$,"synchronizedSortedMap",
388 throw new NullPointerException();
389 }return new java.util.Collections.SynchronizedSortedMap(map);
390 },"java.util.SortedMap");
391 c$.synchronizedSortedSet=Clazz.defineMethod(c$,"synchronizedSortedSet",
394 throw new NullPointerException();
395 }return new java.util.Collections.SynchronizedSortedSet(set);
396 },"java.util.SortedSet");
397 c$.unmodifiableCollection=Clazz.defineMethod(c$,"unmodifiableCollection",
398 function(collection){
399 if(collection==null){
400 throw new NullPointerException();
401 }return new java.util.Collections.UnmodifiableCollection(collection);
402 },"java.util.Collection");
403 c$.unmodifiableList=Clazz.defineMethod(c$,"unmodifiableList",
406 throw new NullPointerException();
407 }if(Clazz.instanceOf(list,java.util.RandomAccess)){
408 return new java.util.Collections.UnmodifiableRandomAccessList(list);
409 }return new java.util.Collections.UnmodifiableList(list);
411 c$.unmodifiableMap=Clazz.defineMethod(c$,"unmodifiableMap",
414 throw new NullPointerException();
415 }return new java.util.Collections.UnmodifiableMap(map);
417 c$.unmodifiableSet=Clazz.defineMethod(c$,"unmodifiableSet",
420 throw new NullPointerException();
421 }return new java.util.Collections.UnmodifiableSet(set);
423 c$.unmodifiableSortedMap=Clazz.defineMethod(c$,"unmodifiableSortedMap",
426 throw new NullPointerException();
427 }return new java.util.Collections.UnmodifiableSortedMap(map);
428 },"java.util.SortedMap");
429 c$.unmodifiableSortedSet=Clazz.defineMethod(c$,"unmodifiableSortedSet",
432 throw new NullPointerException();
433 }return new java.util.Collections.UnmodifiableSortedSet(set);
434 },"java.util.SortedSet");
435 c$.frequency=Clazz.defineMethod(c$,"frequency",
438 throw new NullPointerException();
443 var itr=c.iterator();
444 while(itr.hasNext()){
446 if(o==null?e==null:o.equals(e)){
450 },"java.util.Collection,~O");
452 c$.emptyList=Clazz.defineMethod(c$,"emptyList",
454 return java.util.Collections.EMPTY_LIST;
456 c$.emptySet=Clazz.defineMethod(c$,"emptySet",
458 return java.util.Collections.EMPTY_SET;
460 c$.emptyMap=Clazz.defineMethod(c$,"emptyMap",
462 return java.util.Collections.EMPTY_MAP;
464 c$.checkedCollection=Clazz.defineMethod(c$,"checkedCollection",
466 return new java.util.Collections.CheckedCollection(c,type);
467 },"java.util.Collection,Class");
468 c$.checkedMap=Clazz.defineMethod(c$,"checkedMap",
469 function(m,keyType,valueType){
470 return new java.util.Collections.CheckedMap(m,keyType,valueType);
471 },"java.util.Map,Class,Class");
472 c$.checkedList=Clazz.defineMethod(c$,"checkedList",
474 if(Clazz.instanceOf(list,java.util.RandomAccess)){
475 return new java.util.Collections.CheckedRandomAccessList(list,type);
476 }return new java.util.Collections.CheckedList(list,type);
477 },"java.util.List,Class");
478 c$.checkedSet=Clazz.defineMethod(c$,"checkedSet",
480 return new java.util.Collections.CheckedSet(s,type);
481 },"java.util.Set,Class");
482 c$.checkedSortedMap=Clazz.defineMethod(c$,"checkedSortedMap",
483 function(m,keyType,valueType){
484 return new java.util.Collections.CheckedSortedMap(m,keyType,valueType);
485 },"java.util.SortedMap,Class,Class");
486 c$.checkedSortedSet=Clazz.defineMethod(c$,"checkedSortedSet",
488 return new java.util.Collections.CheckedSortedSet(s,type);
489 },"java.util.SortedSet,Class");
490 c$.addAll=Clazz.defineMethod(c$,"addAll",
493 for(var i=0;i<a.length;i++){
494 modified=new Boolean(modified|c.add(a[i])).valueOf();
497 },"java.util.Collection,~A");
498 c$.disjoint=Clazz.defineMethod(c$,"disjoint",
500 if((Clazz.instanceOf(c1,java.util.Set))&&!(Clazz.instanceOf(c2,java.util.Set))||(c2.size())>c1.size()){
504 }var it=c1.iterator();
506 if(c2.contains(it.next())){
510 },"java.util.Collection,java.util.Collection");
511 c$.checkType=Clazz.defineMethod(c$,"checkType",
513 if(!type.isInstance(obj)){
514 throw new ClassCastException("Attempt to insert "+obj.getClass()+" element into collection with element type "+type);
518 c$.$Collections$1$=function(c){
520 c$=Clazz.decorateAsClass(function(){
521 Clazz.prepareCallback(this,arguments);
523 Clazz.instantialize(this,arguments);
524 },java.util,"Collections$1",null,java.util.Enumeration);
526 Clazz.prepareFields(c$,function(){
527 this.it=c.iterator();
530 Clazz.defineMethod(c$,"hasMoreElements",
532 return this.it.hasNext();
534 Clazz.defineMethod(c$,"nextElement",
536 return this.it.next();
542 c$=Clazz.decorateAsClass(function(){
545 Clazz.instantialize(this,arguments);
546 },java.util.Collections,"CopiesList",java.util.AbstractList,java.io.Serializable);
547 Clazz.makeConstructor(c$,
549 Clazz.superConstructor(this,java.util.Collections.CopiesList,[]);
551 throw new IllegalArgumentException();
555 Clazz.overrideMethod(c$,"contains",
557 return this.element==null?a==null:this.element.equals(a);
559 Clazz.overrideMethod(c$,"size",
563 Clazz.overrideMethod(c$,"get",
567 }throw new IndexOutOfBoundsException();
571 c$=Clazz.declareType(java.util.Collections,"EmptyList",java.util.AbstractList,java.io.Serializable);
572 Clazz.overrideMethod(c$,"contains",
576 Clazz.overrideMethod(c$,"size",
580 Clazz.overrideMethod(c$,"get",
582 throw new IndexOutOfBoundsException();
586 c$=Clazz.declareType(java.util.Collections,"EmptySet",java.util.AbstractSet,java.io.Serializable);
587 Clazz.overrideMethod(c$,"contains",
591 Clazz.overrideMethod(c$,"size",
595 Clazz.overrideMethod(c$,"iterator",
597 return((Clazz.isClassDefined("java.util.Collections$EmptySet$1")?0:java.util.Collections.EmptySet.$Collections$EmptySet$1$()),Clazz.innerTypeInstance(java.util.Collections$EmptySet$1,this,null));
599 c$.$Collections$EmptySet$1$=function(){
601 c$=Clazz.declareAnonymous(java.util,"Collections$EmptySet$1",null,java.util.Iterator);
602 Clazz.overrideMethod(c$,"hasNext",
606 Clazz.overrideMethod(c$,"next",
608 throw new java.util.NoSuchElementException();
610 Clazz.overrideMethod(c$,"remove",
612 throw new UnsupportedOperationException();
618 c$=Clazz.declareType(java.util.Collections,"EmptyMap",java.util.AbstractMap,java.io.Serializable);
619 Clazz.overrideMethod(c$,"containsKey",
623 Clazz.overrideMethod(c$,"containsValue",
627 Clazz.overrideMethod(c$,"entrySet",
629 return java.util.Collections.EMPTY_SET;
631 Clazz.overrideMethod(c$,"get",
635 Clazz.overrideMethod(c$,"keySet",
637 return java.util.Collections.EMPTY_SET;
639 Clazz.overrideMethod(c$,"values",
641 return java.util.Collections.EMPTY_LIST;
645 c$=Clazz.declareType(java.util.Collections,"ReverseComparator",null,[java.util.Comparator,java.io.Serializable]);
646 Clazz.overrideMethod(c$,"compare",
649 return c.compareTo(a);
653 c$=Clazz.decorateAsClass(function(){
654 this.comparator=null;
655 Clazz.instantialize(this,arguments);
656 },java.util.Collections,"ReverseComparatorWithComparator",null,[java.util.Comparator,java.io.Serializable]);
657 Clazz.makeConstructor(c$,
660 },"java.util.Comparator");
661 Clazz.defineMethod(c$,"compare",
663 return this.comparator.compare(b,a);
667 c$=Clazz.decorateAsClass(function(){
669 Clazz.instantialize(this,arguments);
670 },java.util.Collections,"SingletonSet",java.util.AbstractSet,java.io.Serializable);
671 Clazz.makeConstructor(c$,
673 Clazz.superConstructor(this,java.util.Collections.SingletonSet,[]);
676 Clazz.overrideMethod(c$,"contains",
678 return this.element==null?a==null:this.element.equals(a);
680 Clazz.overrideMethod(c$,"size",
684 Clazz.overrideMethod(c$,"iterator",
686 return((Clazz.isClassDefined("java.util.Collections$SingletonSet$1")?0:java.util.Collections.SingletonSet.$Collections$SingletonSet$1$()),Clazz.innerTypeInstance(java.util.Collections$SingletonSet$1,this,null));
688 c$.$Collections$SingletonSet$1$=function(){
690 c$=Clazz.decorateAsClass(function(){
691 Clazz.prepareCallback(this,arguments);
693 Clazz.instantialize(this,arguments);
694 },java.util,"Collections$SingletonSet$1",null,java.util.Iterator);
695 Clazz.overrideMethod(c$,"hasNext",
697 return this.$hasNext;
699 Clazz.overrideMethod(c$,"next",
703 return this.b$["java.util.Collections.SingletonSet"].element;
704 }throw new java.util.NoSuchElementException();
706 Clazz.overrideMethod(c$,"remove",
708 throw new UnsupportedOperationException();
714 c$=Clazz.decorateAsClass(function(){
716 Clazz.instantialize(this,arguments);
717 },java.util.Collections,"SingletonList",java.util.AbstractList,java.io.Serializable);
718 Clazz.makeConstructor(c$,
720 Clazz.superConstructor(this,java.util.Collections.SingletonList,[]);
723 Clazz.overrideMethod(c$,"contains",
725 return this.element==null?a==null:this.element.equals(a);
727 Clazz.overrideMethod(c$,"get",
731 }throw new IndexOutOfBoundsException();
733 Clazz.overrideMethod(c$,"size",
739 c$=Clazz.decorateAsClass(function(){
742 Clazz.instantialize(this,arguments);
743 },java.util.Collections,"SingletonMap",java.util.AbstractMap,java.io.Serializable);
744 Clazz.makeConstructor(c$,
746 Clazz.superConstructor(this,java.util.Collections.SingletonMap,[]);
750 Clazz.overrideMethod(c$,"containsKey",
752 return this.k==null?a==null:this.k.equals(a);
754 Clazz.overrideMethod(c$,"containsValue",
756 return this.v==null?a==null:this.v.equals(a);
758 Clazz.overrideMethod(c$,"get",
760 if(this.containsKey(a)){
764 Clazz.overrideMethod(c$,"size",
768 Clazz.overrideMethod(c$,"entrySet",
770 return((Clazz.isClassDefined("java.util.Collections$SingletonMap$1")?0:java.util.Collections.SingletonMap.$Collections$SingletonMap$1$()),Clazz.innerTypeInstance(java.util.Collections$SingletonMap$1,this,null));
772 c$.$Collections$SingletonMap$1$=function(){
774 c$=Clazz.declareAnonymous(java.util,"Collections$SingletonMap$1",java.util.AbstractSet);
775 Clazz.overrideMethod(c$,"contains",
777 if(Clazz.instanceOf(a,java.util.Map.Entry)){
779 return this.b$["java.util.Collections.SingletonMap"].containsKey(b.getKey())&&this.b$["java.util.Collections.SingletonMap"].containsValue(b.getValue());
782 Clazz.overrideMethod(c$,"size",
786 Clazz.overrideMethod(c$,"iterator",
788 return((Clazz.isClassDefined("java.util.Collections$SingletonMap$1$1")?0:java.util.Collections.$Collections$SingletonMap$1$1$()),Clazz.innerTypeInstance(java.util.Collections$SingletonMap$1$1,this,null));
792 c$.$Collections$SingletonMap$1$1$=function(){
794 c$=Clazz.decorateAsClass(function(){
795 Clazz.prepareCallback(this,arguments);
797 Clazz.instantialize(this,arguments);
798 },java.util,"Collections$SingletonMap$1$1",null,java.util.Iterator);
799 Clazz.overrideMethod(c$,"hasNext",
801 return this.$hasNext;
803 Clazz.overrideMethod(c$,"next",
807 return((Clazz.isClassDefined("java.util.Collections$SingletonMap$1$1$1")?0:java.util.Collections.$Collections$SingletonMap$1$1$1$()),Clazz.innerTypeInstance(java.util.Collections$SingletonMap$1$1$1,this,null));
808 }throw new java.util.NoSuchElementException();
810 Clazz.overrideMethod(c$,"remove",
812 throw new UnsupportedOperationException();
816 c$.$Collections$SingletonMap$1$1$1$=function(){
818 c$=Clazz.declareAnonymous(java.util,"Collections$SingletonMap$1$1$1",null,java.util.Map.Entry);
819 Clazz.overrideMethod(c$,"equals",
821 return this.b$["java.util.Collections$SingletonMap$1"].contains(a);
823 Clazz.overrideMethod(c$,"getKey",
825 return this.b$["java.util.Collections.SingletonMap"].k;
827 Clazz.overrideMethod(c$,"getValue",
829 return this.b$["java.util.Collections.SingletonMap"].v;
831 Clazz.overrideMethod(c$,"hashCode",
833 return(this.b$["java.util.Collections.SingletonMap"].k==null?0:this.b$["java.util.Collections.SingletonMap"].k.hashCode())^(this.b$["java.util.Collections.SingletonMap"].v==null?0:this.b$["java.util.Collections.SingletonMap"].v.hashCode());
835 Clazz.overrideMethod(c$,"setValue",
837 throw new UnsupportedOperationException();
843 c$=Clazz.decorateAsClass(function(){
846 Clazz.instantialize(this,arguments);
847 },java.util.Collections,"SynchronizedCollection",null,[java.util.Collection,java.io.Serializable]);
848 Clazz.makeConstructor(c$,
852 },"java.util.Collection");
853 Clazz.makeConstructor(c$,
857 },"java.util.Collection,~O");
858 Clazz.defineMethod(c$,"add",
861 return this.c.add(a);
863 Clazz.defineMethod(c$,"addAll",
866 return this.c.addAll(a);
867 }},"java.util.Collection");
868 Clazz.defineMethod(c$,"clear",
873 Clazz.defineMethod(c$,"contains",
876 return this.c.contains(a);
878 Clazz.defineMethod(c$,"containsAll",
881 return this.c.containsAll(a);
882 }},"java.util.Collection");
883 Clazz.defineMethod(c$,"isEmpty",
886 return this.c.isEmpty();
888 Clazz.defineMethod(c$,"iterator",
891 return this.c.iterator();
893 Clazz.defineMethod(c$,"remove",
896 return this.c.remove(a);
898 Clazz.defineMethod(c$,"removeAll",
901 return this.c.removeAll(a);
902 }},"java.util.Collection");
903 Clazz.defineMethod(c$,"retainAll",
906 return this.c.retainAll(a);
907 }},"java.util.Collection");
908 Clazz.defineMethod(c$,"size",
911 return this.c.size();
913 Clazz.defineMethod(c$,"toArray",
916 return this.c.toArray();
918 Clazz.defineMethod(c$,"toString",
921 return this.c.toString();
923 Clazz.defineMethod(c$,"toArray",
926 return this.c.toArray(a);
932 c$=Clazz.decorateAsClass(function(){
934 Clazz.instantialize(this,arguments);
935 },java.util.Collections,"SynchronizedList",java.util.Collections.SynchronizedCollection,java.util.List);
936 Clazz.makeConstructor(c$,
938 Clazz.superConstructor(this,java.util.Collections.SynchronizedList,[a]);
941 Clazz.makeConstructor(c$,
943 Clazz.superConstructor(this,java.util.Collections.SynchronizedList,[a,b]);
945 },"java.util.List,~O");
946 Clazz.defineMethod(c$,"add",
951 Clazz.defineMethod(c$,"addAll",
954 return this.list.addAll(a,b);
955 }},"~N,java.util.Collection");
956 Clazz.overrideMethod(c$,"equals",
959 return this.list.equals(a);
961 Clazz.defineMethod(c$,"get",
964 return this.list.get(a);
966 Clazz.overrideMethod(c$,"hashCode",
969 return this.list.hashCode();
971 Clazz.defineMethod(c$,"indexOf",
974 return this.list.indexOf(a);
976 Clazz.defineMethod(c$,"lastIndexOf",
979 return this.list.lastIndexOf(a);
981 //Clazz.defineMethod(c$,"listIterator",
984 //return this.list.listIterator();
986 Clazz.defineMethod(c$,"listIterator",
990 return this.list.listIterator(a);
992 Clazz.defineMethod(c$,"remove",
995 return this.list.remove(a);
997 Clazz.defineMethod(c$,"set",
1000 return this.list.set(a,b);
1002 Clazz.defineMethod(c$,"subList",
1005 return new java.util.Collections.SynchronizedList(this.list.subList(a,b),this.mutex);
1011 Clazz.pu$h(self.c$);
1012 c$=Clazz.declareType(java.util.Collections,"SynchronizedRandomAccessList",java.util.Collections.SynchronizedList,java.util.RandomAccess);
1013 Clazz.overrideMethod(c$,"subList",
1016 return new java.util.Collections.SynchronizedRandomAccessList(this.list.subList(a,b),this.mutex);
1023 Clazz.pu$h(self.c$);
1024 c$=Clazz.decorateAsClass(function(){
1027 Clazz.instantialize(this,arguments);
1028 },java.util.Collections,"SynchronizedMap",null,[java.util.Map,java.io.Serializable]);
1029 Clazz.makeConstructor(c$,
1034 Clazz.makeConstructor(c$,
1038 },"java.util.Map,~O");
1039 Clazz.defineMethod(c$,"clear",
1044 Clazz.defineMethod(c$,"containsKey",
1047 return this.m.containsKey(a);
1049 Clazz.defineMethod(c$,"containsValue",
1052 return this.m.containsValue(a);
1054 Clazz.defineMethod(c$,"entrySet",
1057 return new java.util.Collections.SynchronizedSet(this.m.entrySet(),this.mutex);
1059 Clazz.overrideMethod(c$,"equals",
1062 return this.m.equals(a);
1064 Clazz.defineMethod(c$,"get",
1067 return this.m.get(a);
1069 Clazz.overrideMethod(c$,"hashCode",
1072 return this.m.hashCode();
1074 Clazz.defineMethod(c$,"isEmpty",
1077 return this.m.isEmpty();
1079 Clazz.defineMethod(c$,"keySet",
1082 return new java.util.Collections.SynchronizedSet(this.m.keySet(),this.mutex);
1084 Clazz.defineMethod(c$,"put",
1087 return this.m.put(a,b);
1089 Clazz.defineMethod(c$,"putAll",
1093 }},"java.util.Map");
1094 Clazz.defineMethod(c$,"remove",
1097 return this.m.remove(a);
1099 Clazz.defineMethod(c$,"size",
1102 return this.m.size();
1104 Clazz.defineMethod(c$,"values",
1107 return new java.util.Collections.SynchronizedCollection(this.m.values(),this.mutex);
1109 Clazz.defineMethod(c$,"toString",
1112 return this.m.toString();
1115 Clazz.pu$h(self.c$);
1116 c$=Clazz.declareType(java.util.Collections,"SynchronizedSet",java.util.Collections.SynchronizedCollection,java.util.Set);
1117 Clazz.overrideMethod(c$,"equals",
1120 return this.c.equals(a);
1122 Clazz.overrideMethod(c$,"hashCode",
1125 return this.c.hashCode();
1128 Clazz.pu$h(self.c$);
1129 c$=Clazz.decorateAsClass(function(){
1131 Clazz.instantialize(this,arguments);
1132 },java.util.Collections,"SynchronizedSortedMap",java.util.Collections.SynchronizedMap,java.util.SortedMap);
1133 Clazz.makeConstructor(c$,
1135 Clazz.superConstructor(this,java.util.Collections.SynchronizedSortedMap,[a]);
1137 },"java.util.SortedMap");
1138 Clazz.makeConstructor(c$,
1140 Clazz.superConstructor(this,java.util.Collections.SynchronizedSortedMap,[a,b]);
1142 },"java.util.SortedMap,~O");
1143 Clazz.defineMethod(c$,"comparator",
1146 return this.sm.comparator();
1148 Clazz.defineMethod(c$,"firstKey",
1151 return this.sm.firstKey();
1153 Clazz.defineMethod(c$,"headMap",
1156 return new java.util.Collections.SynchronizedSortedMap(this.sm.headMap(a),this.mutex);
1158 Clazz.defineMethod(c$,"lastKey",
1161 return this.sm.lastKey();
1163 Clazz.defineMethod(c$,"subMap",
1166 return new java.util.Collections.SynchronizedSortedMap(this.sm.subMap(a,b),this.mutex);
1168 Clazz.defineMethod(c$,"tailMap",
1171 return new java.util.Collections.SynchronizedSortedMap(this.sm.tailMap(a),this.mutex);
1174 Clazz.pu$h(self.c$);
1175 c$=Clazz.decorateAsClass(function(){
1177 Clazz.instantialize(this,arguments);
1178 },java.util.Collections,"SynchronizedSortedSet",java.util.Collections.SynchronizedSet,java.util.SortedSet);
1179 Clazz.makeConstructor(c$,
1181 Clazz.superConstructor(this,java.util.Collections.SynchronizedSortedSet,[a]);
1183 },"java.util.SortedSet");
1184 Clazz.makeConstructor(c$,
1186 Clazz.superConstructor(this,java.util.Collections.SynchronizedSortedSet,[a,b]);
1188 },"java.util.SortedSet,~O");
1189 Clazz.defineMethod(c$,"comparator",
1192 return this.ss.comparator();
1194 Clazz.defineMethod(c$,"first",
1197 return this.ss.first();
1199 Clazz.defineMethod(c$,"headSet",
1202 return new java.util.Collections.SynchronizedSortedSet(this.ss.headSet(a),this.mutex);
1204 Clazz.defineMethod(c$,"last",
1207 return this.ss.last();
1209 Clazz.defineMethod(c$,"subSet",
1212 return new java.util.Collections.SynchronizedSortedSet(this.ss.subSet(a,b),this.mutex);
1214 Clazz.defineMethod(c$,"tailSet",
1217 return new java.util.Collections.SynchronizedSortedSet(this.ss.tailSet(a),this.mutex);
1220 Clazz.pu$h(self.c$);
1221 c$=Clazz.decorateAsClass(function(){
1223 Clazz.instantialize(this,arguments);
1224 },java.util.Collections,"UnmodifiableCollection",null,[java.util.Collection,java.io.Serializable]);
1225 Clazz.makeConstructor(c$,
1228 },"java.util.Collection");
1229 Clazz.overrideMethod(c$,"add",
1231 throw new UnsupportedOperationException();
1233 Clazz.overrideMethod(c$,"addAll",
1235 throw new UnsupportedOperationException();
1236 },"java.util.Collection");
1237 Clazz.overrideMethod(c$,"clear",
1239 throw new UnsupportedOperationException();
1241 Clazz.defineMethod(c$,"contains",
1243 return this.c.contains(a);
1245 Clazz.defineMethod(c$,"containsAll",
1247 return this.c.containsAll(a);
1248 },"java.util.Collection");
1249 Clazz.defineMethod(c$,"isEmpty",
1251 return this.c.isEmpty();
1253 Clazz.defineMethod(c$,"iterator",
1255 return((Clazz.isClassDefined("java.util.Collections$UnmodifiableCollection$1")?0:java.util.Collections.UnmodifiableCollection.$Collections$UnmodifiableCollection$1$()),Clazz.innerTypeInstance(java.util.Collections$UnmodifiableCollection$1,this,null));
1257 Clazz.overrideMethod(c$,"remove",
1259 throw new UnsupportedOperationException();
1261 Clazz.overrideMethod(c$,"removeAll",
1263 throw new UnsupportedOperationException();
1264 },"java.util.Collection");
1265 Clazz.overrideMethod(c$,"retainAll",
1267 throw new UnsupportedOperationException();
1268 },"java.util.Collection");
1269 Clazz.defineMethod(c$,"size",
1271 return this.c.size();
1273 Clazz.defineMethod(c$,"toArray",
1275 return this.c.toArray();
1277 Clazz.defineMethod(c$,"toArray",
1279 return this.c.toArray(a);
1281 Clazz.defineMethod(c$,"toString",
1283 return this.c.toString();
1285 c$.$Collections$UnmodifiableCollection$1$=function(){
1286 Clazz.pu$h(self.c$);
1287 c$=Clazz.decorateAsClass(function(){
1288 Clazz.prepareCallback(this,arguments);
1290 Clazz.instantialize(this,arguments);
1291 },java.util,"Collections$UnmodifiableCollection$1",null,java.util.Iterator);
1292 Clazz.prepareFields(c$,function(){
1293 this.iterator=this.b$["java.util.Collections.UnmodifiableCollection"].c.iterator();
1295 Clazz.defineMethod(c$,"hasNext",
1297 return this.iterator.hasNext();
1299 Clazz.defineMethod(c$,"next",
1301 return this.iterator.next();
1303 Clazz.overrideMethod(c$,"remove",
1305 throw new UnsupportedOperationException();
1311 //BH note: a declared static superclass must come before a static class referencing it
1313 Clazz.pu$h(self.c$);
1314 c$=Clazz.decorateAsClass(function(){
1316 Clazz.instantialize(this,arguments);
1317 },java.util.Collections,"UnmodifiableList",java.util.Collections.UnmodifiableCollection,java.util.List);
1318 Clazz.makeConstructor(c$,
1320 Clazz.superConstructor(this,java.util.Collections.UnmodifiableList,[a]);
1322 },"java.util.List");
1323 Clazz.defineMethod(c$,"add",
1325 throw new UnsupportedOperationException();
1327 Clazz.defineMethod(c$,"addAll",
1329 throw new UnsupportedOperationException();
1330 },"~N,java.util.Collection");
1331 Clazz.overrideMethod(c$,"equals",
1333 return this.list.equals(a);
1335 Clazz.defineMethod(c$,"get",
1337 return this.list.get(a);
1339 Clazz.overrideMethod(c$,"hashcode",
1341 return this.list.hashCode();
1343 Clazz.defineMethod(c$,"indexOf",
1345 return this.list.indexOf(a);
1347 Clazz.defineMethod(c$,"lastIndexOf",
1349 return this.list.lastIndexOf(a);
1351 //Clazz.defineMethod(c$,"listIterator",
1353 //return this.listIterator(0);
1355 Clazz.defineMethod(c$,"listIterator",
1358 return((Clazz.isClassDefined("java.util.Collections$UnmodifiableList$1")?0:java.util.Collections.UnmodifiableList.$Collections$UnmodifiableList$1$()),Clazz.innerTypeInstance(java.util.Collections$UnmodifiableList$1,this,null));
1360 Clazz.defineMethod(c$,"remove",
1362 throw new UnsupportedOperationException();
1364 Clazz.overrideMethod(c$,"set",
1366 throw new UnsupportedOperationException();
1368 Clazz.defineMethod(c$,"subList",
1370 return new java.util.Collections.UnmodifiableList(this.list.subList(a,b));
1372 c$.$Collections$UnmodifiableList$1$=function(){
1373 Clazz.pu$h(self.c$);
1374 c$=Clazz.decorateAsClass(function(){
1375 Clazz.prepareCallback(this,arguments);
1377 Clazz.instantialize(this,arguments);
1378 },java.util,"Collections$UnmodifiableList$1",null,java.util.ListIterator);
1379 Clazz.prepareFields(c$,function(){
1380 this.iterator=this.b$["java.util.Collections.UnmodifiableList"].list.listIterator(location);
1382 Clazz.overrideMethod(c$,"add",
1384 throw new UnsupportedOperationException();
1386 Clazz.defineMethod(c$,"hasNext",
1388 return this.iterator.hasNext();
1390 Clazz.defineMethod(c$,"hasPrevious",
1392 return this.iterator.hasPrevious();
1394 Clazz.defineMethod(c$,"next",
1396 return this.iterator.next();
1398 Clazz.defineMethod(c$,"nextIndex",
1400 return this.iterator.nextIndex();
1402 Clazz.defineMethod(c$,"previous",
1404 return this.iterator.previous();
1406 Clazz.defineMethod(c$,"previousIndex",
1408 return this.iterator.previousIndex();
1410 Clazz.overrideMethod(c$,"remove",
1412 throw new UnsupportedOperationException();
1414 Clazz.overrideMethod(c$,"set",
1416 throw new UnsupportedOperationException();
1425 Clazz.pu$h(self.c$);
1426 c$=Clazz.declareType(java.util.Collections,"UnmodifiableRandomAccessList",java.util.Collections.UnmodifiableList,java.util.RandomAccess);
1427 Clazz.overrideMethod(c$,"subList",
1429 return new java.util.Collections.UnmodifiableRandomAccessList(this.list.subList(a,b));
1434 Clazz.pu$h(self.c$);
1435 c$=Clazz.declareType(java.util.Collections,"UnmodifiableSet",java.util.Collections.UnmodifiableCollection,java.util.Set);
1436 Clazz.overrideMethod(c$,"equals",
1438 return this.c.equals(a);
1440 Clazz.overrideMethod(c$,"hashCode",
1442 return this.c.hashCode();
1447 Clazz.pu$h(self.c$);
1448 c$=Clazz.decorateAsClass(function(){
1450 Clazz.instantialize(this,arguments);
1451 },java.util.Collections,"UnmodifiableMap",null,[java.util.Map,java.io.Serializable]);
1452 Clazz.makeConstructor(c$,
1456 Clazz.overrideMethod(c$,"clear",
1458 throw new UnsupportedOperationException();
1460 Clazz.defineMethod(c$,"containsKey",
1462 return this.m.containsKey(a);
1464 Clazz.defineMethod(c$,"containsValue",
1466 return this.m.containsValue(a);
1468 Clazz.defineMethod(c$,"entrySet",
1470 return new java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet(this.m.entrySet());
1472 Clazz.overrideMethod(c$,"equals",
1474 return this.m.equals(a);
1476 Clazz.defineMethod(c$,"get",
1478 return this.m.get(a);
1480 Clazz.overrideMethod(c$,"hashcode",
1482 return this.m.hashCode();
1484 Clazz.defineMethod(c$,"isEmpty",
1486 return this.m.isEmpty();
1488 Clazz.defineMethod(c$,"keySet",
1490 return new java.util.Collections.UnmodifiableSet(this.m.keySet());
1492 Clazz.overrideMethod(c$,"put",
1494 throw new UnsupportedOperationException();
1496 Clazz.overrideMethod(c$,"putAll",
1498 throw new UnsupportedOperationException();
1500 Clazz.overrideMethod(c$,"remove",
1502 throw new UnsupportedOperationException();
1504 Clazz.defineMethod(c$,"size",
1506 return this.m.size();
1508 Clazz.defineMethod(c$,"values",
1510 return new java.util.Collections.UnmodifiableCollection(this.m.values());
1512 Clazz.defineMethod(c$,"toString",
1514 return this.m.toString();
1523 Clazz.pu$h(self.c$);
1524 c$=Clazz.declareType(java.util.Collections.UnmodifiableMap,"UnmodifiableEntrySet",java.util.Collections.UnmodifiableSet);
1525 Clazz.overrideMethod(c$,"iterator",
1527 return((Clazz.isClassDefined("java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$1")?0:java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet.$Collections$UnmodifiableMap$UnmodifiableEntrySet$1$()),Clazz.innerTypeInstance(java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$1,this,null));
1529 Clazz.defineMethod(c$,"toArray",
1531 var a=this.c.size();
1533 var c=this.iterator();
1534 for(var d=a;--d>=0;){
1539 Clazz.defineMethod(c$,"toArray",
1541 var b=this.c.size();
1543 var d=this.iterator();
1545 var e=a.getClass().getComponentType();
1546 a=java.lang.reflect.Array.newInstance(e,b);
1554 c$.$Collections$UnmodifiableMap$UnmodifiableEntrySet$1$=function(){
1555 Clazz.pu$h(self.c$);
1556 c$=Clazz.decorateAsClass(function(){
1557 Clazz.prepareCallback(this,arguments);
1559 Clazz.instantialize(this,arguments);
1560 },java.util,"Collections$UnmodifiableMap$UnmodifiableEntrySet$1",null,java.util.Iterator);
1561 Clazz.prepareFields(c$,function(){
1562 this.iterator=this.b$["java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet"].c.iterator();
1564 Clazz.defineMethod(c$,"hasNext",
1566 return this.iterator.hasNext();
1568 Clazz.defineMethod(c$,"next",
1570 return new java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableMapEntry(this.iterator.next());
1572 Clazz.overrideMethod(c$,"remove",
1574 throw new UnsupportedOperationException();
1578 Clazz.pu$h(self.c$);
1579 c$=Clazz.decorateAsClass(function(){
1581 Clazz.instantialize(this,arguments);
1582 },java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet,"UnmodifiableMapEntry",null,java.util.Map.Entry);
1583 Clazz.makeConstructor(c$,
1586 },"java.util.Map.Entry");
1587 Clazz.overrideMethod(c$,"equals",
1589 return this.mapEntry.equals(a);
1591 Clazz.defineMethod(c$,"getKey",
1593 return this.mapEntry.getKey();
1595 Clazz.defineMethod(c$,"getValue",
1597 return this.mapEntry.getValue();
1599 Clazz.overrideMethod(c$,"hashcode",
1601 return this.mapEntry.hashCode();
1603 Clazz.overrideMethod(c$,"setValue",
1605 throw new UnsupportedOperationException();
1607 Clazz.defineMethod(c$,"toString",
1609 return this.mapEntry.toString();
1617 Clazz.pu$h(self.c$);
1618 c$=Clazz.decorateAsClass(function(){
1620 Clazz.instantialize(this,arguments);
1621 },java.util.Collections,"UnmodifiableSortedMap",java.util.Collections.UnmodifiableMap,java.util.SortedMap);
1622 Clazz.makeConstructor(c$,
1624 Clazz.superConstructor(this,java.util.Collections.UnmodifiableSortedMap,[a]);
1626 },"java.util.SortedMap");
1627 Clazz.defineMethod(c$,"comparator",
1629 return this.sm.comparator();
1631 Clazz.defineMethod(c$,"firstKey",
1633 return this.sm.firstKey();
1635 Clazz.defineMethod(c$,"headMap",
1637 return new java.util.Collections.UnmodifiableSortedMap(this.sm.headMap(a));
1639 Clazz.defineMethod(c$,"lastKey",
1641 return this.sm.lastKey();
1643 Clazz.defineMethod(c$,"subMap",
1645 return new java.util.Collections.UnmodifiableSortedMap(this.sm.subMap(a,b));
1647 Clazz.defineMethod(c$,"tailMap",
1649 return new java.util.Collections.UnmodifiableSortedMap(this.sm.tailMap(a));
1652 Clazz.pu$h(self.c$);
1653 c$=Clazz.decorateAsClass(function(){
1655 Clazz.instantialize(this,arguments);
1656 },java.util.Collections,"UnmodifiableSortedSet",java.util.Collections.UnmodifiableSet,java.util.SortedSet);
1657 Clazz.makeConstructor(c$,
1659 Clazz.superConstructor(this,java.util.Collections.UnmodifiableSortedSet,[a]);
1661 },"java.util.SortedSet");
1662 Clazz.defineMethod(c$,"comparator",
1664 return this.ss.comparator();
1666 Clazz.defineMethod(c$,"first",
1668 return this.ss.first();
1670 Clazz.defineMethod(c$,"headSet",
1672 return new java.util.Collections.UnmodifiableSortedSet(this.ss.headSet(a));
1674 Clazz.defineMethod(c$,"last",
1676 return this.ss.last();
1678 Clazz.defineMethod(c$,"subSet",
1680 return new java.util.Collections.UnmodifiableSortedSet(this.ss.subSet(a,b));
1682 Clazz.defineMethod(c$,"tailSet",
1684 return new java.util.Collections.UnmodifiableSortedSet(this.ss.tailSet(a));
1687 Clazz.pu$h(self.c$);
1688 c$=Clazz.decorateAsClass(function(){
1691 Clazz.instantialize(this,arguments);
1692 },java.util.Collections,"CheckedCollection",null,[java.util.Collection,java.io.Serializable]);
1693 Clazz.makeConstructor(c$,
1695 if(a==null||b==null){
1696 throw new NullPointerException();
1699 },"java.util.Collection,Class");
1700 Clazz.defineMethod(c$,"size",
1702 return this.c.size();
1704 Clazz.defineMethod(c$,"isEmpty",
1706 return this.c.isEmpty();
1708 Clazz.defineMethod(c$,"contains",
1710 return this.c.contains(a);
1712 Clazz.defineMethod(c$,"iterator",
1714 var a=this.c.iterator();
1715 if(Clazz.instanceOf(a,java.util.ListIterator)){
1716 a=new java.util.Collections.CheckedListIterator(a,this.type);
1719 Clazz.defineMethod(c$,"toArray",
1721 return this.c.toArray();
1723 Clazz.defineMethod(c$,"toArray",
1725 return this.c.toArray(a);
1727 Clazz.defineMethod(c$,"add",
1729 return this.c.add(java.util.Collections.checkType(a,this.type));
1731 Clazz.defineMethod(c$,"remove",
1733 return this.c.remove(a);
1735 Clazz.defineMethod(c$,"containsAll",
1737 return this.c.containsAll(a);
1738 },"java.util.Collection");
1739 Clazz.overrideMethod(c$,"addAll",
1744 }var c=new Array(b);
1746 for(var e=0;e<b;e++){
1747 c[e]=java.util.Collections.checkType(d.next(),this.type);
1750 for(var g=0;g<b;g++){
1751 f=new Boolean(f|this.c.add(c[g])).valueOf();
1754 },"java.util.Collection");
1755 Clazz.defineMethod(c$,"removeAll",
1757 return this.c.removeAll(a);
1758 },"java.util.Collection");
1759 Clazz.defineMethod(c$,"retainAll",
1761 return this.c.retainAll(a);
1762 },"java.util.Collection");
1763 Clazz.defineMethod(c$,"clear",
1767 Clazz.defineMethod(c$,"toString",
1769 return this.c.toString();
1772 Clazz.pu$h(self.c$);
1773 c$=Clazz.decorateAsClass(function(){
1776 Clazz.instantialize(this,arguments);
1777 },java.util.Collections,"CheckedListIterator",null,java.util.ListIterator);
1778 Clazz.makeConstructor(c$,
1782 },"java.util.ListIterator,Class");
1783 Clazz.defineMethod(c$,"hasNext",
1785 return this.i.hasNext();
1787 Clazz.defineMethod(c$,"next",
1789 return this.i.next();
1791 Clazz.defineMethod(c$,"remove",
1795 Clazz.defineMethod(c$,"hasPrevious",
1797 return this.i.hasPrevious();
1799 Clazz.defineMethod(c$,"previous",
1801 return this.i.previous();
1803 Clazz.defineMethod(c$,"nextIndex",
1805 return this.i.nextIndex();
1807 Clazz.defineMethod(c$,"previousIndex",
1809 return this.i.previousIndex();
1811 Clazz.defineMethod(c$,"set",
1813 this.i.set(java.util.Collections.checkType(a,this.type));
1815 Clazz.defineMethod(c$,"add",
1817 this.i.add(java.util.Collections.checkType(a,this.type));
1820 Clazz.pu$h(self.c$);
1821 c$=Clazz.decorateAsClass(function(){
1823 Clazz.instantialize(this,arguments);
1824 },java.util.Collections,"CheckedList",java.util.Collections.CheckedCollection,java.util.List);
1825 Clazz.makeConstructor(c$,
1827 Clazz.superConstructor(this,java.util.Collections.CheckedList,[a,b]);
1829 },"java.util.List,Class");
1830 Clazz.defineMethod(c$,"addAll",
1835 }var d=new Array(c);
1837 for(var f=0;f<c;f++){
1838 d[f]=java.util.Collections.checkType(e.next(),this.type);
1840 return this.l.addAll(a,java.util.Arrays.asList(d));
1841 },"~N,java.util.Collection");
1842 Clazz.defineMethod(c$,"get",
1844 return this.l.get(a);
1846 Clazz.defineMethod(c$,"set",
1848 return this.l.set(a,java.util.Collections.checkType(b,this.type));
1850 Clazz.defineMethod(c$,"add",
1852 this.l.add(a,java.util.Collections.checkType(b,this.type));
1854 Clazz.defineMethod(c$,"remove",
1856 return this.l.remove(a);
1858 Clazz.defineMethod(c$,"indexOf",
1860 return this.l.indexOf(a);
1862 Clazz.defineMethod(c$,"lastIndexOf",
1864 return this.l.lastIndexOf(a);
1866 //Clazz.defineMethod(c$,"listIterator",
1868 //return new java.util.Collections.CheckedListIterator(this.l.listIterator(),this.type);
1870 Clazz.defineMethod(c$,"listIterator",
1873 return new java.util.Collections.CheckedListIterator(this.l.listIterator(a),this.type);
1875 Clazz.defineMethod(c$,"subList",
1877 return java.util.Collections.checkedList(this.l.subList(a,b),this.type);
1879 Clazz.overrideMethod(c$,"equals",
1881 return this.l.equals(a);
1883 Clazz.overrideMethod(c$,"hashcode",
1885 return this.l.hashCode();
1888 Clazz.pu$h(self.c$);
1889 c$=Clazz.declareType(java.util.Collections,"CheckedRandomAccessList",java.util.Collections.CheckedList,java.util.RandomAccess);
1891 Clazz.pu$h(self.c$);
1892 c$=Clazz.declareType(java.util.Collections,"CheckedSet",java.util.Collections.CheckedCollection,java.util.Set);
1893 Clazz.overrideMethod(c$,"equals",
1895 return this.c.equals(a);
1897 Clazz.overrideMethod(c$,"hashCode",
1899 return this.c.hashCode();
1902 Clazz.pu$h(self.c$);
1903 c$=Clazz.decorateAsClass(function(){
1906 this.valueType=null;
1907 Clazz.instantialize(this,arguments);
1908 },java.util.Collections,"CheckedMap",null,[java.util.Map,java.io.Serializable]);
1909 Clazz.makeConstructor(c$,
1910 ($fz=function(a,b,c){
1911 if(a==null||b==null||c==null){
1912 throw new NullPointerException();
1916 },$fz.isPrivate=true,$fz),"java.util.Map,Class,Class");
1917 Clazz.defineMethod(c$,"size",
1919 return this.m.size();
1921 Clazz.defineMethod(c$,"isEmpty",
1923 return this.m.isEmpty();
1925 Clazz.defineMethod(c$,"containsKey",
1927 return this.m.containsKey(a);
1929 Clazz.defineMethod(c$,"containsValue",
1931 return this.m.containsValue(a);
1933 Clazz.defineMethod(c$,"get",
1935 return this.m.get(a);
1937 Clazz.defineMethod(c$,"put",
1939 return this.m.put(java.util.Collections.checkType(a,this.keyType),java.util.Collections.checkType(b,this.valueType));
1941 Clazz.defineMethod(c$,"remove",
1943 return this.m.remove(a);
1945 Clazz.overrideMethod(c$,"putAll",
1950 }var c=new Array(b);
1951 var d=a.entrySet().iterator();
1952 for(var e=0;e<b;e++){
1954 java.util.Collections.checkType(f.getKey(),this.keyType);
1955 java.util.Collections.checkType(f.getValue(),this.valueType);
1958 for(var f=0;f<b;f++){
1959 this.m.put(c[f].getKey(),c[f].getValue());
1962 Clazz.defineMethod(c$,"clear",
1966 Clazz.defineMethod(c$,"keySet",
1968 return this.m.keySet();
1970 Clazz.defineMethod(c$,"values",
1972 return this.m.values();
1974 Clazz.defineMethod(c$,"entrySet",
1976 return new java.util.Collections.CheckedMap.CheckedEntrySet(this.m.entrySet(),this.valueType);
1978 Clazz.overrideMethod(c$,"equals",
1980 return this.m.equals(a);
1982 Clazz.overrideMethod(c$,"hashcode",
1984 return this.m.hashCode();
1986 Clazz.defineMethod(c$,"toString",
1988 return this.m.toString();
1990 Clazz.pu$h(self.c$);
1991 c$=Clazz.decorateAsClass(function(){
1993 this.valueType=null;
1994 Clazz.instantialize(this,arguments);
1995 },java.util.Collections.CheckedMap,"CheckedEntry",null,java.util.Map.Entry);
1996 Clazz.makeConstructor(c$,
1999 throw new NullPointerException();
2002 },"java.util.Map.Entry,Class");
2003 Clazz.defineMethod(c$,"getKey",
2005 return this.e.getKey();
2007 Clazz.defineMethod(c$,"getValue",
2009 return this.e.getValue();
2011 Clazz.defineMethod(c$,"setValue",
2013 return this.e.setValue(java.util.Collections.checkType(a,this.valueType));
2015 Clazz.overrideMethod(c$,"equals",
2017 return this.e.equals(a);
2019 Clazz.overrideMethod(c$,"hashcode",
2021 return this.e.hashCode();
2024 Clazz.pu$h(self.c$);
2025 c$=Clazz.decorateAsClass(function(){
2027 this.valueType=null;
2028 Clazz.instantialize(this,arguments);
2029 },java.util.Collections.CheckedMap,"CheckedEntrySet",null,java.util.Set);
2030 Clazz.makeConstructor(c$,
2034 },"java.util.Set,Class");
2035 Clazz.defineMethod(c$,"iterator",
2037 return new java.util.Collections.CheckedMap.CheckedEntrySet.CheckedEntryIterator(this.s.iterator(),this.valueType);
2039 Clazz.defineMethod(c$,"toArray",
2043 var c=this.iterator();
2044 for(var d=0;d<a;d++){
2049 Clazz.defineMethod(c$,"toArray",
2053 var c=a.getClass().getComponentType();
2054 a=java.lang.reflect.Array.newInstance(c,b);
2055 }var c=this.iterator();
2056 for(var d=0;d<b;d++){
2063 Clazz.defineMethod(c$,"retainAll",
2065 return this.s.retainAll(a);
2066 },"java.util.Collection");
2067 Clazz.defineMethod(c$,"removeAll",
2069 return this.s.removeAll(a);
2070 },"java.util.Collection");
2071 Clazz.defineMethod(c$,"containsAll",
2073 return this.s.containsAll(a);
2074 },"java.util.Collection");
2075 Clazz.overrideMethod(c$,"addAll",
2077 throw new UnsupportedOperationException();
2078 },"java.util.Collection");
2079 Clazz.defineMethod(c$,"remove",
2081 return this.s.remove(a);
2083 Clazz.defineMethod(c$,"contains",
2085 return this.s.contains(a);
2087 Clazz.overrideMethod(c$,"add",
2089 throw new UnsupportedOperationException();
2090 },"java.util.Map.Entry");
2091 Clazz.defineMethod(c$,"isEmpty",
2093 return this.s.isEmpty();
2095 Clazz.defineMethod(c$,"clear",
2099 Clazz.defineMethod(c$,"size",
2101 return this.s.size();
2103 Clazz.overrideMethod(c$,"hashcode",
2105 return this.s.hashCode();
2107 Clazz.overrideMethod(c$,"equals",
2109 return this.s.equals(a);
2111 Clazz.pu$h(self.c$);
2112 c$=Clazz.decorateAsClass(function(){
2114 this.valueType=null;
2115 Clazz.instantialize(this,arguments);
2116 },java.util.Collections.CheckedMap.CheckedEntrySet,"CheckedEntryIterator",null,java.util.Iterator);
2117 Clazz.makeConstructor(c$,
2121 },"java.util.Iterator,Class");
2122 Clazz.defineMethod(c$,"hasNext",
2124 return this.i.hasNext();
2126 Clazz.defineMethod(c$,"remove",
2130 Clazz.defineMethod(c$,"next",
2132 return new java.util.Collections.CheckedMap.CheckedEntry(this.i.next(),this.valueType);
2137 Clazz.pu$h(self.c$);
2138 c$=Clazz.decorateAsClass(function(){
2140 Clazz.instantialize(this,arguments);
2141 },java.util.Collections,"CheckedSortedSet",java.util.Collections.CheckedSet,java.util.SortedSet);
2142 Clazz.makeConstructor(c$,
2144 Clazz.superConstructor(this,java.util.Collections.CheckedSortedSet,[a,b]);
2146 },"java.util.SortedSet,Class");
2147 Clazz.defineMethod(c$,"comparator",
2149 return this.ss.comparator();
2151 Clazz.defineMethod(c$,"subSet",
2153 return new java.util.Collections.CheckedSortedSet(this.ss.subSet(a,b),this.type);
2155 Clazz.defineMethod(c$,"headSet",
2157 return new java.util.Collections.CheckedSortedSet(this.ss.headSet(a),this.type);
2159 Clazz.defineMethod(c$,"tailSet",
2161 return new java.util.Collections.CheckedSortedSet(this.ss.tailSet(a),this.type);
2163 Clazz.defineMethod(c$,"first",
2165 return this.ss.first();
2167 Clazz.defineMethod(c$,"last",
2169 return this.ss.last();
2172 Clazz.pu$h(self.c$);
2173 c$=Clazz.decorateAsClass(function(){
2175 Clazz.instantialize(this,arguments);
2176 },java.util.Collections,"CheckedSortedMap",java.util.Collections.CheckedMap,java.util.SortedMap);
2177 Clazz.makeConstructor(c$,
2179 Clazz.superConstructor(this,java.util.Collections.CheckedSortedMap,[a,b,c]);
2181 },"java.util.SortedMap,Class,Class");
2182 Clazz.defineMethod(c$,"comparator",
2184 return this.sm.comparator();
2186 Clazz.defineMethod(c$,"subMap",
2188 return new java.util.Collections.CheckedSortedMap(this.sm.subMap(a,b),this.keyType,this.valueType);
2190 Clazz.defineMethod(c$,"headMap",
2192 return new java.util.Collections.CheckedSortedMap(this.sm.headMap(a),this.keyType,this.valueType);
2194 Clazz.defineMethod(c$,"tailMap",
2196 return new java.util.Collections.CheckedSortedMap(this.sm.tailMap(a),this.keyType,this.valueType);
2198 Clazz.defineMethod(c$,"firstKey",
2200 return this.sm.firstKey();
2202 Clazz.defineMethod(c$,"lastKey",
2204 return this.sm.lastKey();
2207 c$.EMPTY_LIST=c$.prototype.EMPTY_LIST=new java.util.Collections.EmptyList();
2208 c$.EMPTY_SET=c$.prototype.EMPTY_SET=new java.util.Collections.EmptySet();
2209 c$.EMPTY_MAP=c$.prototype.EMPTY_MAP=new java.util.Collections.EmptyMap();