Check-in [97b18f324f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Implement some of Vector.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:97b18f324fbb754e96b222913c0b6a00f2b5e45a
User & Date: stephanie.gawroriski 2019-05-19 17:46:20
Context
2019-05-19
18:04
Add some more history. check-in: 2803ee2505 user: stephanie.gawroriski tags: trunk
17:46
Implement some of Vector. check-in: 97b18f324f user: stephanie.gawroriski tags: trunk
17:21
Some Form base; If a resource was not found in a suite then do a traditional classpath search for it. check-in: dda11a1178 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/apis/cldc-compact/java/util/Vector.java.

233
234
235
236
237
238
239


240

241
242
243
244
245
246
247
...
277
278
279
280
281
282
283




284
285
286
287
288
289
290
291
292
293
294
295
296
...
332
333
334
335
336
337
338




339
340
341
342




343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
...
401
402
403
404
405
406
407




408
409
410
411



412
413





414

415

416
417
418
419



















420
421
422
423
424
425
426
...
438
439
440
441
442
443
444







445
446
447
448
449
450
451
452







453

454
455
456
457
458
459
460




461
462
463
464
465
466
467
468
469




470
471
472
473
474
475
476
477
478
479
480
481
482
	 *
	 * @param __i The element index.
	 * @return The element.
	 * @since 2019/05/14
	 */
	public E elementAt(int __i)
	{


		return this.get(__i);

	}
	
	/**
	 * Returns an enumeration over the elements.
	 *
	 * @return The element enumeration.
	 * @since 2019/05/14
................................................................................
				extra[i] = elements[i];
			
			// Set
			this.elementData = extra;
		}
	}
	




	@Override
	public boolean equals(Object __a)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
	 * Returns the first element in the vector.
	 *
	 * @return The first element.
................................................................................
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	




	@Override
	public int indexOf(Object __a)
	{
		throw new todo.TODO();




	}
	
	public int indexOf(Object __a, int __b)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	public void insertElementAt(E __a, int __b)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	@Override
	public boolean isEmpty()
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
................................................................................
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	




	@Override
	public boolean remove(Object __a)
	{
		throw new todo.TODO();



	}
	





	@Override

	public E remove(int __a)

	{
		synchronized (this)
		{
			throw new todo.TODO();



















		}
	}
	
	@Override
	public boolean removeAll(Collection<?> __a)
	{
		synchronized (this)
................................................................................
	{
		synchronized (this)
		{
			this.clear();
		}
	}
	







	public boolean removeElement(Object __a)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	







	public void removeElementAt(int __a)

	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	




	@Override
	protected void removeRange(int __a, int __b)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	




	@Override
	public boolean retainAll(Collection<?> __a)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/14
	 */







>
>
|
>







 







>
>
>
>

|



|







 







>
>
>
>

|

<
>
>
>
>












<
<
<
<
<
<
<
<
<







 







>
>
>
>

|

<
>
>
>
|
|
>
>
>
>
>

>
|
>



<
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
|



|



>
>
>
>
>
>
>
|
>



|



>
>
>
>





|



>
>
>
>

|



|







233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
...
339
340
341
342
343
344
345
346
347
348
349
350
351
352

353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368









369
370
371
372
373
374
375
...
406
407
408
409
410
411
412
413
414
415
416
417
418
419

420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436

437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
...
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
	 *
	 * @param __i The element index.
	 * @return The element.
	 * @since 2019/05/14
	 */
	public E elementAt(int __i)
	{
		synchronized (this)
		{
			return this.get(__i);
		}
	}
	
	/**
	 * Returns an enumeration over the elements.
	 *
	 * @return The element enumeration.
	 * @since 2019/05/14
................................................................................
				extra[i] = elements[i];
			
			// Set
			this.elementData = extra;
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	public boolean equals(Object __o)
	{
		synchronized (this)
		{
			return super.equals(__o);
		}
	}
	
	/**
	 * Returns the first element in the vector.
	 *
	 * @return The first element.
................................................................................
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	public int indexOf(Object __v)
	{

		synchronized (this)
		{
			return super.indexOf(__v);
		}
	}
	
	public int indexOf(Object __a, int __b)
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	public void insertElementAt(E __a, int __b)
	{









		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
................................................................................
	{
		synchronized (this)
		{
			throw new todo.TODO();
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	public boolean remove(Object __v)
	{

		synchronized (this)
		{
			return super.remove(__v);
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	@SuppressWarnings({"unchecked"})
	public E remove(int __i)
		throws ArrayIndexOutOfBoundsException
	{
		synchronized (this)
		{

			// Out of bounds?
			int size = this.elementCount;
			if (__i < 0 || __i >= size)
				throw new ArrayIndexOutOfBoundsException("IOOB");
			
			// Get the old element first
			Object[] elements = this.elementData;
			Object rv = elements[__i];
			
			// Copy all of the elements down
			for (int o = __i, i = __i + 1; i < size; o++, i++)
				elements[o] = elements[i];
			elements[size - 1] = null;
			
			// Set new size
			this.elementCount = size - 1;
			
			// And the old element
			return (E)rv;
		}
	}
	
	@Override
	public boolean removeAll(Collection<?> __a)
	{
		synchronized (this)
................................................................................
	{
		synchronized (this)
		{
			this.clear();
		}
	}
	
	/**
	 * Removes the given value from the list.
	 *
	 * @param __v The value to remove.
	 * @return If it was removed.
	 * @since 2019/05/19
	 */
	public boolean removeElement(Object __v)
	{
		synchronized (this)
		{
			return this.remove(__v);
		}
	}
	
	/**
	 * Removes the element at the given index.
	 *
	 * @param __i The index to remove.
	 * @throws ArrayIndexOutOfBoundsException If the index is out of bounds.
	 * @since 2019/05/19
	 */
	public void removeElementAt(int __i)
		throws ArrayIndexOutOfBoundsException
	{
		synchronized (this)
		{
			this.remove(__i);
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	protected void removeRange(int __a, int __b)
	{
		synchronized (this)
		{
			super.removeRange(__a, __b);
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/19
	 */
	@Override
	public boolean retainAll(Collection<?> __c)
	{
		synchronized (this)
		{
			return super.retainAll(__c);
		}
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/05/14
	 */