Skip to content

Package: ValueArray

ValueArray

nameinstructionbranchcomplexitylinemethod
ValueArray()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getMaximumCapacity()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSize()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setMaximumCapacity(int)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3: *
4: * Copyright (c) 2004-2018 Oracle and/or its affiliates. All rights reserved.
5: *
6: * Oracle licenses this file to You under the Apache License, Version 2.0
7: * (the "License"); you may not use this file except in compliance with
8: * the License. You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package com.sun.xml.fastinfoset.util;
20:
21: public abstract class ValueArray {
22: public static final int DEFAULT_CAPACITY = 10;
23: public static final int MAXIMUM_CAPACITY = Integer.MAX_VALUE;
24:
25: protected int _size;
26:
27: protected int _readOnlyArraySize;
28:
29: protected int _maximumCapacity;
30:
31: public int getSize() {
32: return _size;
33: }
34:
35: public int getMaximumCapacity() {
36: return _maximumCapacity;
37: }
38:
39: public void setMaximumCapacity(int maximumCapacity) {
40: _maximumCapacity = maximumCapacity;
41: }
42:
43: public abstract void setReadOnlyArray(ValueArray array, boolean clear);
44:
45: public abstract void clear();
46: }