rename [Test]AbstractRandomAccessXList to just [Test]RandomAccessXList
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131007 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
95df194b8b
commit
f54ad7f89e
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractShortArrayList.java,v 1.8 2003/04/11 22:01:25 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractShortArrayList.java,v 1.9 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -68,9 +68,9 @@ package org.apache.commons.collections.primitives;
|
|||
* primitive values will be stored in an underlying primitive array, and
|
||||
* provides methods for manipulating the capacity of that array.<P>
|
||||
*
|
||||
* @version $Revision: 1.8 $ $Date: 2003/04/11 22:01:25 $
|
||||
* @version $Revision: 1.9 $ $Date: 2003/04/13 22:30:57 $
|
||||
* @author Rodney Waldhoff
|
||||
* @deprecated See {@link AbstractRandomAccessShortList}.
|
||||
* @deprecated See {@link RandomAccessShortList}.
|
||||
*/
|
||||
public abstract class AbstractShortArrayList extends AbstractShortList {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayFloatList.java,v 1.1 2003/04/13 22:08:08 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayFloatList.java,v 1.2 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -67,11 +67,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:08 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayFloatList extends AbstractRandomAccessFloatList implements FloatList, Serializable {
|
||||
public class ArrayFloatList extends RandomAccessFloatList implements FloatList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayIntList.java,v 1.6 2003/02/26 15:45:19 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayIntList.java,v 1.7 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -67,11 +67,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.6 $ $Date: 2003/02/26 15:45:19 $
|
||||
* @version $Revision: 1.7 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayIntList extends AbstractRandomAccessIntList implements IntList, Serializable {
|
||||
public class ArrayIntList extends RandomAccessIntList implements IntList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayLongList.java,v 1.1 2003/04/08 18:24:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayLongList.java,v 1.2 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -67,11 +67,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:36 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayLongList extends AbstractRandomAccessLongList implements LongList, Serializable {
|
||||
public class ArrayLongList extends RandomAccessLongList implements LongList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayShortList.java,v 1.1 2003/04/11 00:55:37 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayShortList.java,v 1.2 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -67,11 +67,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:37 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayShortList extends AbstractRandomAccessShortList implements ShortList, Serializable {
|
||||
public class ArrayShortList extends RandomAccessShortList implements ShortList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedByteList.java,v 1.1 2003/04/11 21:50:15 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedByteList.java,v 1.2 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -76,11 +76,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 21:50:15 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayUnsignedByteList extends AbstractRandomAccessShortList implements ShortList, Serializable {
|
||||
public class ArrayUnsignedByteList extends RandomAccessShortList implements ShortList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedIntList.java,v 1.2 2003/04/11 21:50:15 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedIntList.java,v 1.3 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -76,11 +76,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/11 21:50:15 $
|
||||
* @version $Revision: 1.3 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayUnsignedIntList extends AbstractRandomAccessLongList implements LongList, Serializable {
|
||||
public class ArrayUnsignedIntList extends RandomAccessLongList implements LongList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedShortList.java,v 1.5 2003/04/11 21:50:15 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ArrayUnsignedShortList.java,v 1.6 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -76,11 +76,11 @@ import java.io.Serializable;
|
|||
* This implementation supports all optional methods.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.5 $ $Date: 2003/04/11 21:50:15 $
|
||||
* @version $Revision: 1.6 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class ArrayUnsignedShortList extends AbstractRandomAccessIntList implements IntList, Serializable {
|
||||
public class ArrayUnsignedShortList extends RandomAccessIntList implements IntList, Serializable {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractRandomAccessFloatList.java,v 1.1 2003/04/13 22:08:08 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/RandomAccessFloatList.java,v 1.1 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -74,17 +74,17 @@ import java.util.NoSuchElementException;
|
|||
* to provide a more efficient implementation.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:08 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public abstract class AbstractRandomAccessFloatList extends AbstractFloatCollection implements FloatList {
|
||||
public abstract class RandomAccessFloatList extends AbstractFloatCollection implements FloatList {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/** Constructs an empty list. */
|
||||
protected AbstractRandomAccessFloatList() {
|
||||
protected RandomAccessFloatList() {
|
||||
}
|
||||
|
||||
// fully abstract methods
|
||||
|
@ -237,12 +237,12 @@ public abstract class AbstractRandomAccessFloatList extends AbstractFloatCollect
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
private static class ComodChecker {
|
||||
ComodChecker(AbstractRandomAccessFloatList source) {
|
||||
ComodChecker(RandomAccessFloatList source) {
|
||||
_source = source;
|
||||
resyncModCount();
|
||||
}
|
||||
|
||||
protected AbstractRandomAccessFloatList getList() {
|
||||
protected RandomAccessFloatList getList() {
|
||||
return _source;
|
||||
}
|
||||
|
||||
|
@ -256,12 +256,12 @@ public abstract class AbstractRandomAccessFloatList extends AbstractFloatCollect
|
|||
_expectedModCount = getList().getModCount();
|
||||
}
|
||||
|
||||
private AbstractRandomAccessFloatList _source = null;
|
||||
private RandomAccessFloatList _source = null;
|
||||
private int _expectedModCount = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessFloatListIterator extends ComodChecker implements FloatListIterator {
|
||||
RandomAccessFloatListIterator(AbstractRandomAccessFloatList list, int index) {
|
||||
RandomAccessFloatListIterator(RandomAccessFloatList list, int index) {
|
||||
super(list);
|
||||
if(index < 0 || index > getList().size()) {
|
||||
throw new IndexOutOfBoundsException("Index " + index + " not in [0," + getList().size() + ")");
|
||||
|
@ -349,8 +349,8 @@ public abstract class AbstractRandomAccessFloatList extends AbstractFloatCollect
|
|||
private int _lastReturnedIndex = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessFloatSubList extends AbstractRandomAccessFloatList implements FloatList {
|
||||
RandomAccessFloatSubList(AbstractRandomAccessFloatList list, int fromIndex, int toIndex) {
|
||||
protected static class RandomAccessFloatSubList extends RandomAccessFloatList implements FloatList {
|
||||
RandomAccessFloatSubList(RandomAccessFloatList list, int fromIndex, int toIndex) {
|
||||
if(fromIndex < 0 || toIndex > list.size()) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else if(fromIndex > toIndex) {
|
||||
|
@ -421,7 +421,7 @@ public abstract class AbstractRandomAccessFloatList extends AbstractFloatCollect
|
|||
|
||||
private int _offset = 0;
|
||||
private int _limit = 0;
|
||||
private AbstractRandomAccessFloatList _list = null;
|
||||
private RandomAccessFloatList _list = null;
|
||||
private ComodChecker _comod = null;
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractRandomAccessIntList.java,v 1.14 2003/03/03 23:23:39 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/RandomAccessIntList.java,v 1.1 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -74,17 +74,17 @@ import java.util.NoSuchElementException;
|
|||
* to provide a more efficient implementation.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.14 $ $Date: 2003/03/03 23:23:39 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public abstract class AbstractRandomAccessIntList extends AbstractIntCollection implements IntList {
|
||||
public abstract class RandomAccessIntList extends AbstractIntCollection implements IntList {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/** Constructs an empty list. */
|
||||
protected AbstractRandomAccessIntList() {
|
||||
protected RandomAccessIntList() {
|
||||
}
|
||||
|
||||
// fully abstract methods
|
||||
|
@ -237,12 +237,12 @@ public abstract class AbstractRandomAccessIntList extends AbstractIntCollection
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
private static class ComodChecker {
|
||||
ComodChecker(AbstractRandomAccessIntList source) {
|
||||
ComodChecker(RandomAccessIntList source) {
|
||||
_source = source;
|
||||
resyncModCount();
|
||||
}
|
||||
|
||||
protected AbstractRandomAccessIntList getList() {
|
||||
protected RandomAccessIntList getList() {
|
||||
return _source;
|
||||
}
|
||||
|
||||
|
@ -256,12 +256,12 @@ public abstract class AbstractRandomAccessIntList extends AbstractIntCollection
|
|||
_expectedModCount = getList().getModCount();
|
||||
}
|
||||
|
||||
private AbstractRandomAccessIntList _source = null;
|
||||
private RandomAccessIntList _source = null;
|
||||
private int _expectedModCount = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessIntListIterator extends ComodChecker implements IntListIterator {
|
||||
RandomAccessIntListIterator(AbstractRandomAccessIntList list, int index) {
|
||||
RandomAccessIntListIterator(RandomAccessIntList list, int index) {
|
||||
super(list);
|
||||
if(index < 0 || index > getList().size()) {
|
||||
throw new IndexOutOfBoundsException("Index " + index + " not in [0," + getList().size() + ")");
|
||||
|
@ -349,8 +349,8 @@ public abstract class AbstractRandomAccessIntList extends AbstractIntCollection
|
|||
private int _lastReturnedIndex = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessIntSubList extends AbstractRandomAccessIntList implements IntList {
|
||||
RandomAccessIntSubList(AbstractRandomAccessIntList list, int fromIndex, int toIndex) {
|
||||
protected static class RandomAccessIntSubList extends RandomAccessIntList implements IntList {
|
||||
RandomAccessIntSubList(RandomAccessIntList list, int fromIndex, int toIndex) {
|
||||
if(fromIndex < 0 || toIndex > list.size()) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else if(fromIndex > toIndex) {
|
||||
|
@ -421,7 +421,7 @@ public abstract class AbstractRandomAccessIntList extends AbstractIntCollection
|
|||
|
||||
private int _offset = 0;
|
||||
private int _limit = 0;
|
||||
private AbstractRandomAccessIntList _list = null;
|
||||
private RandomAccessIntList _list = null;
|
||||
private ComodChecker _comod = null;
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractRandomAccessLongList.java,v 1.1 2003/04/08 18:24:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/RandomAccessLongList.java,v 1.1 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -74,17 +74,17 @@ import java.util.NoSuchElementException;
|
|||
* to provide a more efficient implementation.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:36 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public abstract class AbstractRandomAccessLongList extends AbstractLongCollection implements LongList {
|
||||
public abstract class RandomAccessLongList extends AbstractLongCollection implements LongList {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/** Constructs an empty list. */
|
||||
protected AbstractRandomAccessLongList() {
|
||||
protected RandomAccessLongList() {
|
||||
}
|
||||
|
||||
// fully abstract methods
|
||||
|
@ -238,12 +238,12 @@ public abstract class AbstractRandomAccessLongList extends AbstractLongCollectio
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
private static class ComodChecker {
|
||||
ComodChecker(AbstractRandomAccessLongList source) {
|
||||
ComodChecker(RandomAccessLongList source) {
|
||||
_source = source;
|
||||
resyncModCount();
|
||||
}
|
||||
|
||||
protected AbstractRandomAccessLongList getList() {
|
||||
protected RandomAccessLongList getList() {
|
||||
return _source;
|
||||
}
|
||||
|
||||
|
@ -257,12 +257,12 @@ public abstract class AbstractRandomAccessLongList extends AbstractLongCollectio
|
|||
_expectedModCount = getList().getModCount();
|
||||
}
|
||||
|
||||
private AbstractRandomAccessLongList _source = null;
|
||||
private RandomAccessLongList _source = null;
|
||||
private int _expectedModCount = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessLongListIterator extends ComodChecker implements LongListIterator {
|
||||
RandomAccessLongListIterator(AbstractRandomAccessLongList list, int index) {
|
||||
RandomAccessLongListIterator(RandomAccessLongList list, int index) {
|
||||
super(list);
|
||||
if(index < 0 || index > getList().size()) {
|
||||
throw new IndexOutOfBoundsException("Index " + index + " not in [0," + getList().size() + ")");
|
||||
|
@ -350,8 +350,8 @@ public abstract class AbstractRandomAccessLongList extends AbstractLongCollectio
|
|||
private int _lastReturnedIndex = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessLongSubList extends AbstractRandomAccessLongList implements LongList {
|
||||
RandomAccessLongSubList(AbstractRandomAccessLongList list, int fromIndex, int toIndex) {
|
||||
protected static class RandomAccessLongSubList extends RandomAccessLongList implements LongList {
|
||||
RandomAccessLongSubList(RandomAccessLongList list, int fromIndex, int toIndex) {
|
||||
if(fromIndex < 0 || toIndex > list.size()) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else if(fromIndex > toIndex) {
|
||||
|
@ -422,7 +422,7 @@ public abstract class AbstractRandomAccessLongList extends AbstractLongCollectio
|
|||
|
||||
private int _offset = 0;
|
||||
private int _limit = 0;
|
||||
private AbstractRandomAccessLongList _list = null;
|
||||
private RandomAccessLongList _list = null;
|
||||
private ComodChecker _comod = null;
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractRandomAccessShortList.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/RandomAccessShortList.java,v 1.1 2003/04/13 22:30:57 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -74,17 +74,17 @@ import java.util.NoSuchElementException;
|
|||
* to provide a more efficient implementation.
|
||||
*
|
||||
* @since Commons Collections 2.2
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:36 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:57 $
|
||||
*
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public abstract class AbstractRandomAccessShortList extends AbstractShortCollection implements ShortList {
|
||||
public abstract class RandomAccessShortList extends AbstractShortCollection implements ShortList {
|
||||
|
||||
// constructors
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/** Constructs an empty list. */
|
||||
protected AbstractRandomAccessShortList() {
|
||||
protected RandomAccessShortList() {
|
||||
}
|
||||
|
||||
// fully abstract methods
|
||||
|
@ -237,12 +237,12 @@ public abstract class AbstractRandomAccessShortList extends AbstractShortCollect
|
|||
//-------------------------------------------------------------------------
|
||||
|
||||
private static class ComodChecker {
|
||||
ComodChecker(AbstractRandomAccessShortList source) {
|
||||
ComodChecker(RandomAccessShortList source) {
|
||||
_source = source;
|
||||
resyncModCount();
|
||||
}
|
||||
|
||||
protected AbstractRandomAccessShortList getList() {
|
||||
protected RandomAccessShortList getList() {
|
||||
return _source;
|
||||
}
|
||||
|
||||
|
@ -256,12 +256,12 @@ public abstract class AbstractRandomAccessShortList extends AbstractShortCollect
|
|||
_expectedModCount = getList().getModCount();
|
||||
}
|
||||
|
||||
private AbstractRandomAccessShortList _source = null;
|
||||
private RandomAccessShortList _source = null;
|
||||
private int _expectedModCount = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessShortListIterator extends ComodChecker implements ShortListIterator {
|
||||
RandomAccessShortListIterator(AbstractRandomAccessShortList list, int index) {
|
||||
RandomAccessShortListIterator(RandomAccessShortList list, int index) {
|
||||
super(list);
|
||||
if(index < 0 || index > getList().size()) {
|
||||
throw new IndexOutOfBoundsException("Index " + index + " not in [0," + getList().size() + ")");
|
||||
|
@ -349,8 +349,8 @@ public abstract class AbstractRandomAccessShortList extends AbstractShortCollect
|
|||
private int _lastReturnedIndex = -1;
|
||||
}
|
||||
|
||||
protected static class RandomAccessShortSubList extends AbstractRandomAccessShortList implements ShortList {
|
||||
RandomAccessShortSubList(AbstractRandomAccessShortList list, int fromIndex, int toIndex) {
|
||||
protected static class RandomAccessShortSubList extends RandomAccessShortList implements ShortList {
|
||||
RandomAccessShortSubList(RandomAccessShortList list, int fromIndex, int toIndex) {
|
||||
if(fromIndex < 0 || toIndex > list.size()) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else if(fromIndex > toIndex) {
|
||||
|
@ -421,7 +421,7 @@ public abstract class AbstractRandomAccessShortList extends AbstractShortCollect
|
|||
|
||||
private int _offset = 0;
|
||||
private int _limit = 0;
|
||||
private AbstractRandomAccessShortList _list = null;
|
||||
private RandomAccessShortList _list = null;
|
||||
private ComodChecker _comod = null;
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAll.java,v 1.14 2003/04/13 22:08:08 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAll.java,v 1.15 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -62,7 +62,7 @@ import junit.framework.TestCase;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.14 $ $Date: 2003/04/13 22:08:08 $
|
||||
* @version $Revision: 1.15 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestAll extends TestCase {
|
||||
|
@ -79,22 +79,22 @@ public class TestAll extends TestCase {
|
|||
TestSuite suite = new TestSuite();
|
||||
|
||||
suite.addTest(TestAbstractShortCollection.suite());
|
||||
suite.addTest(TestAbstractRandomAccessShortList.suite());
|
||||
suite.addTest(TestRandomAccessShortList.suite());
|
||||
suite.addTest(TestArrayShortList.suite());
|
||||
suite.addTest(TestArrayUnsignedByteList.suite());
|
||||
|
||||
suite.addTest(TestAbstractIntCollection.suite());
|
||||
suite.addTest(TestAbstractRandomAccessIntList.suite());
|
||||
suite.addTest(TestRandomAccessIntList.suite());
|
||||
suite.addTest(TestArrayIntList.suite());
|
||||
suite.addTest(TestArrayUnsignedShortList.suite());
|
||||
|
||||
suite.addTest(TestAbstractLongCollection.suite());
|
||||
suite.addTest(TestAbstractRandomAccessLongList.suite());
|
||||
suite.addTest(TestRandomAccessLongList.suite());
|
||||
suite.addTest(TestArrayLongList.suite());
|
||||
suite.addTest(TestArrayUnsignedIntList.suite());
|
||||
|
||||
suite.addTest(TestAbstractFloatCollection.suite());
|
||||
suite.addTest(TestAbstractRandomAccessFloatList.suite());
|
||||
suite.addTest(TestRandomAccessFloatList.suite());
|
||||
suite.addTest(TestArrayFloatList.suite());
|
||||
|
||||
suite.addTest(org.apache.commons.collections.primitives.adapters.TestAll.suite());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractRandomAccessFloatList.java,v 1.1 2003/04/13 22:08:09 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestRandomAccessFloatList.java,v 1.1 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -62,27 +62,27 @@ import junit.framework.TestCase;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:09 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestAbstractRandomAccessFloatList extends TestCase {
|
||||
public class TestRandomAccessFloatList extends TestCase {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public TestAbstractRandomAccessFloatList(String testName) {
|
||||
public TestRandomAccessFloatList(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestAbstractRandomAccessFloatList.class);
|
||||
return new TestSuite(TestRandomAccessFloatList.class);
|
||||
}
|
||||
|
||||
// tests
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public void testAddIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
RandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
try {
|
||||
list.add((float)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -98,7 +98,7 @@ public class TestAbstractRandomAccessFloatList extends TestCase {
|
|||
}
|
||||
|
||||
public void testAddAllIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
RandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
FloatList list2 = new ArrayFloatList();
|
||||
list2.add((float)3);
|
||||
try {
|
||||
|
@ -110,7 +110,7 @@ public class TestAbstractRandomAccessFloatList extends TestCase {
|
|||
}
|
||||
|
||||
public void testSetIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
RandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
try {
|
||||
list.set(0,(float)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -120,7 +120,7 @@ public class TestAbstractRandomAccessFloatList extends TestCase {
|
|||
}
|
||||
|
||||
public void testRemoveElementIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
RandomAccessFloatList list = new AbstractRandomAccessFloatListImpl();
|
||||
try {
|
||||
list.removeElementAt(0);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -133,7 +133,7 @@ public class TestAbstractRandomAccessFloatList extends TestCase {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
|
||||
static class AbstractRandomAccessFloatListImpl extends AbstractRandomAccessFloatList {
|
||||
static class AbstractRandomAccessFloatListImpl extends RandomAccessFloatList {
|
||||
public AbstractRandomAccessFloatListImpl() {
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractRandomAccessIntList.java,v 1.1 2003/03/03 23:23:40 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestRandomAccessIntList.java,v 1.1 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -62,27 +62,27 @@ import junit.framework.TestCase;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/03/03 23:23:40 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestAbstractRandomAccessIntList extends TestCase {
|
||||
public class TestRandomAccessIntList extends TestCase {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public TestAbstractRandomAccessIntList(String testName) {
|
||||
public TestRandomAccessIntList(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestAbstractRandomAccessIntList.class);
|
||||
return new TestSuite(TestRandomAccessIntList.class);
|
||||
}
|
||||
|
||||
// tests
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public void testAddIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
RandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
try {
|
||||
list.add(1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -98,7 +98,7 @@ public class TestAbstractRandomAccessIntList extends TestCase {
|
|||
}
|
||||
|
||||
public void testAddAllIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
RandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
IntList list2 = new ArrayIntList();
|
||||
list2.add(3);
|
||||
try {
|
||||
|
@ -110,7 +110,7 @@ public class TestAbstractRandomAccessIntList extends TestCase {
|
|||
}
|
||||
|
||||
public void testSetIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
RandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
try {
|
||||
list.set(0,1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -120,7 +120,7 @@ public class TestAbstractRandomAccessIntList extends TestCase {
|
|||
}
|
||||
|
||||
public void testRemoveElementIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
RandomAccessIntList list = new AbstractRandomAccessIntListImpl();
|
||||
try {
|
||||
list.removeElementAt(0);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -133,7 +133,7 @@ public class TestAbstractRandomAccessIntList extends TestCase {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
|
||||
static class AbstractRandomAccessIntListImpl extends AbstractRandomAccessIntList {
|
||||
static class AbstractRandomAccessIntListImpl extends RandomAccessIntList {
|
||||
public AbstractRandomAccessIntListImpl() {
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractRandomAccessLongList.java,v 1.1 2003/04/08 18:24:34 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestRandomAccessLongList.java,v 1.1 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -62,27 +62,27 @@ import junit.framework.TestCase;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:34 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestAbstractRandomAccessLongList extends TestCase {
|
||||
public class TestRandomAccessLongList extends TestCase {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public TestAbstractRandomAccessLongList(String testName) {
|
||||
public TestRandomAccessLongList(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestAbstractRandomAccessLongList.class);
|
||||
return new TestSuite(TestRandomAccessLongList.class);
|
||||
}
|
||||
|
||||
// tests
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public void testAddIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
RandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
try {
|
||||
list.add((long)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -98,7 +98,7 @@ public class TestAbstractRandomAccessLongList extends TestCase {
|
|||
}
|
||||
|
||||
public void testAddAllIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
RandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
LongList list2 = new ArrayLongList();
|
||||
list2.add(3);
|
||||
try {
|
||||
|
@ -110,7 +110,7 @@ public class TestAbstractRandomAccessLongList extends TestCase {
|
|||
}
|
||||
|
||||
public void testSetIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
RandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
try {
|
||||
list.set(0,(long)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -120,7 +120,7 @@ public class TestAbstractRandomAccessLongList extends TestCase {
|
|||
}
|
||||
|
||||
public void testRemoveElementIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
RandomAccessLongList list = new AbstractRandomAccessLongListImpl();
|
||||
try {
|
||||
list.removeElementAt(0);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -133,7 +133,7 @@ public class TestAbstractRandomAccessLongList extends TestCase {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
|
||||
static class AbstractRandomAccessLongListImpl extends AbstractRandomAccessLongList {
|
||||
static class AbstractRandomAccessLongListImpl extends RandomAccessLongList {
|
||||
public AbstractRandomAccessLongListImpl() {
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractRandomAccessShortList.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestRandomAccessShortList.java,v 1.1 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -62,27 +62,27 @@ import junit.framework.TestCase;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:36 $
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestAbstractRandomAccessShortList extends TestCase {
|
||||
public class TestRandomAccessShortList extends TestCase {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public TestAbstractRandomAccessShortList(String testName) {
|
||||
public TestRandomAccessShortList(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestAbstractRandomAccessShortList.class);
|
||||
return new TestSuite(TestRandomAccessShortList.class);
|
||||
}
|
||||
|
||||
// tests
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public void testAddIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
RandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
try {
|
||||
list.add((short)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -98,7 +98,7 @@ public class TestAbstractRandomAccessShortList extends TestCase {
|
|||
}
|
||||
|
||||
public void testAddAllIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
RandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
ShortList list2 = new ArrayShortList();
|
||||
list2.add((short)3);
|
||||
try {
|
||||
|
@ -110,7 +110,7 @@ public class TestAbstractRandomAccessShortList extends TestCase {
|
|||
}
|
||||
|
||||
public void testSetIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
RandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
try {
|
||||
list.set(0,(short)1);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -120,7 +120,7 @@ public class TestAbstractRandomAccessShortList extends TestCase {
|
|||
}
|
||||
|
||||
public void testRemoveElementIsUnsupportedByDefault() {
|
||||
AbstractRandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
RandomAccessShortList list = new AbstractRandomAccessShortListImpl();
|
||||
try {
|
||||
list.removeElementAt(0);
|
||||
fail("Expected UnsupportedOperationException");
|
||||
|
@ -133,7 +133,7 @@ public class TestAbstractRandomAccessShortList extends TestCase {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
|
||||
static class AbstractRandomAccessShortListImpl extends AbstractRandomAccessShortList {
|
||||
static class AbstractRandomAccessShortListImpl extends RandomAccessShortList {
|
||||
public AbstractRandomAccessShortListImpl() {
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatCollectionCollection.java,v 1.1 2003/04/13 22:08:07 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatCollectionCollection.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -64,12 +64,12 @@ import junit.framework.Test;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
import org.apache.commons.collections.TestObject;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessFloatList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessFloatList;
|
||||
import org.apache.commons.collections.primitives.ArrayFloatList;
|
||||
import org.apache.commons.collections.primitives.FloatList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:07 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestFloatCollectionCollection extends TestObject {
|
||||
|
@ -125,7 +125,7 @@ public class TestFloatCollectionCollection extends TestObject {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
Collection collection = FloatCollectionCollection.wrap(new AbstractRandomAccessFloatList() {
|
||||
Collection collection = FloatCollectionCollection.wrap(new RandomAccessFloatList() {
|
||||
public float get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListList.java,v 1.1 2003/04/13 22:08:07 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListList.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -65,11 +65,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
import org.apache.commons.collections.BulkTest;
|
||||
import org.apache.commons.collections.TestList;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessFloatList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessFloatList;
|
||||
import org.apache.commons.collections.primitives.ArrayFloatList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:07 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestFloatListList extends TestList {
|
||||
|
@ -145,7 +145,7 @@ public class TestFloatListList extends TestList {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
List list = FloatListList.wrap(new AbstractRandomAccessFloatList() {
|
||||
List list = FloatListList.wrap(new RandomAccessFloatList() {
|
||||
public float get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntCollectionCollection.java,v 1.2 2003/03/05 19:10:51 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntCollectionCollection.java,v 1.3 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -64,12 +64,12 @@ import junit.framework.Test;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
import org.apache.commons.collections.TestObject;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessIntList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessIntList;
|
||||
import org.apache.commons.collections.primitives.ArrayIntList;
|
||||
import org.apache.commons.collections.primitives.IntList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.2 $ $Date: 2003/03/05 19:10:51 $
|
||||
* @version $Revision: 1.3 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestIntCollectionCollection extends TestObject {
|
||||
|
@ -125,7 +125,7 @@ public class TestIntCollectionCollection extends TestObject {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
Collection collection = IntCollectionCollection.wrap(new AbstractRandomAccessIntList() {
|
||||
Collection collection = IntCollectionCollection.wrap(new RandomAccessIntList() {
|
||||
public int get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListList.java,v 1.3 2003/03/05 19:10:51 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListList.java,v 1.4 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -65,11 +65,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
import org.apache.commons.collections.BulkTest;
|
||||
import org.apache.commons.collections.TestList;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessIntList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessIntList;
|
||||
import org.apache.commons.collections.primitives.ArrayIntList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.3 $ $Date: 2003/03/05 19:10:51 $
|
||||
* @version $Revision: 1.4 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestIntListList extends TestList {
|
||||
|
@ -145,7 +145,7 @@ public class TestIntListList extends TestList {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
List list = IntListList.wrap(new AbstractRandomAccessIntList() {
|
||||
List list = IntListList.wrap(new RandomAccessIntList() {
|
||||
public int get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongCollectionCollection.java,v 1.1 2003/04/08 18:24:35 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongCollectionCollection.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -64,12 +64,12 @@ import junit.framework.Test;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
import org.apache.commons.collections.TestObject;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessLongList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessLongList;
|
||||
import org.apache.commons.collections.primitives.ArrayLongList;
|
||||
import org.apache.commons.collections.primitives.LongList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:35 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestLongCollectionCollection extends TestObject {
|
||||
|
@ -125,7 +125,7 @@ public class TestLongCollectionCollection extends TestObject {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
Collection collection = LongCollectionCollection.wrap(new AbstractRandomAccessLongList() {
|
||||
Collection collection = LongCollectionCollection.wrap(new RandomAccessLongList() {
|
||||
public long get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.1 2003/04/08 18:24:35 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -65,11 +65,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
import org.apache.commons.collections.BulkTest;
|
||||
import org.apache.commons.collections.TestList;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessLongList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessLongList;
|
||||
import org.apache.commons.collections.primitives.ArrayLongList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:35 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestLongListList extends TestList {
|
||||
|
@ -145,7 +145,7 @@ public class TestLongListList extends TestList {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
List list = LongListList.wrap(new AbstractRandomAccessLongList() {
|
||||
List list = LongListList.wrap(new RandomAccessLongList() {
|
||||
public long get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortCollectionCollection.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortCollectionCollection.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -64,12 +64,12 @@ import junit.framework.Test;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
import org.apache.commons.collections.TestObject;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessShortList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessShortList;
|
||||
import org.apache.commons.collections.primitives.ArrayShortList;
|
||||
import org.apache.commons.collections.primitives.ShortList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:36 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestShortCollectionCollection extends TestObject {
|
||||
|
@ -125,7 +125,7 @@ public class TestShortCollectionCollection extends TestObject {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
Collection collection = ShortCollectionCollection.wrap(new AbstractRandomAccessShortList() {
|
||||
Collection collection = ShortCollectionCollection.wrap(new RandomAccessShortList() {
|
||||
public short get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListList.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListList.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -65,11 +65,11 @@ import junit.framework.TestSuite;
|
|||
|
||||
import org.apache.commons.collections.BulkTest;
|
||||
import org.apache.commons.collections.TestList;
|
||||
import org.apache.commons.collections.primitives.AbstractRandomAccessShortList;
|
||||
import org.apache.commons.collections.primitives.RandomAccessShortList;
|
||||
import org.apache.commons.collections.primitives.ArrayShortList;
|
||||
|
||||
/**
|
||||
* @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:36 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 22:30:56 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestShortListList extends TestList {
|
||||
|
@ -145,7 +145,7 @@ public class TestShortListList extends TestList {
|
|||
}
|
||||
|
||||
public void testWrapNonSerializable() {
|
||||
List list = ShortListList.wrap(new AbstractRandomAccessShortList() {
|
||||
List list = ShortListList.wrap(new RandomAccessShortList() {
|
||||
public short get(int i) { throw new IndexOutOfBoundsException(); }
|
||||
public int size() { return 0; }
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue