17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl.xs.util;
23
24 import java.lang.reflect.Array;
25 import java.util.AbstractList;
26
27 import com.sun.org.apache.xerces.internal.xs.LSInputList;
28 import org.w3c.dom.ls.LSInput;
29
30 /**
31 * Contains a list of LSInputs.
32 *
33 * @xerces.internal
34 *
35 * @author Michael Glavassevich, IBM
36 *
37 * @version $Id: LSInputListImpl.java,v 1.2 2010-10-26 23:01:04 joehw Exp $
38 */
39 public final class LSInputListImpl extends AbstractList implements LSInputList {
40
41 /**
42 * An immutable empty list.
43 */
44 public static final LSInputListImpl EMPTY_LIST = new LSInputListImpl(new LSInput[0], 0);
45
46 // The array to hold all data
47 private final LSInput[] fArray;
48 // Number of elements in this list
49 private final int fLength;
50
51 /**
52 * Construct an LSInputList implementation
53 *
54 * @param array the data array
55 * @param length the number of elements
56 */
57 public LSInputListImpl(LSInput[] array, int length) {
|
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl.xs.util;
23
24 import java.lang.reflect.Array;
25 import java.util.AbstractList;
26
27 import com.sun.org.apache.xerces.internal.xs.LSInputList;
28 import org.w3c.dom.ls.LSInput;
29
30 /**
31 * Contains a list of LSInputs.
32 *
33 * @xerces.internal
34 *
35 * @author Michael Glavassevich, IBM
36 *
37 */
38 public final class LSInputListImpl extends AbstractList implements LSInputList {
39
40 /**
41 * An immutable empty list.
42 */
43 public static final LSInputListImpl EMPTY_LIST = new LSInputListImpl(new LSInput[0], 0);
44
45 // The array to hold all data
46 private final LSInput[] fArray;
47 // Number of elements in this list
48 private final int fLength;
49
50 /**
51 * Construct an LSInputList implementation
52 *
53 * @param array the data array
54 * @param length the number of elements
55 */
56 public LSInputListImpl(LSInput[] array, int length) {
|