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