• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / ibatis-2 / 730

28 Dec 2025 10:16PM UTC coverage: 65.615% (+0.5%) from 65.146%
730

push

github

web-flow
Update README.md

1602 of 2802 branches covered (57.17%)

5053 of 7701 relevant lines covered (65.61%)

0.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/ibatis/sqlmap/engine/mapping/result/XmlList.java
1
/*
2
 * Copyright 2004-2025 the original author or authors.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *    https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package com.ibatis.sqlmap.engine.mapping.result;
17

18
import java.util.Collection;
19
import java.util.Iterator;
20
import java.util.List;
21
import java.util.ListIterator;
22

23
/**
24
 * Not really sure what this is...it is not used internally
25
 */
26
public class XmlList implements List {
27

28
  /** The list. */
29
  private List list;
30

31
  /**
32
   * Build a list from another list.
33
   *
34
   * @param list
35
   *          - a base list
36
   */
37
  public XmlList(List list) {
×
38
    this.list = list;
×
39
  }
×
40

41
  @Override
42
  public int size() {
43
    return list.size();
×
44
  }
45

46
  @Override
47
  public boolean isEmpty() {
48
    return list.isEmpty();
×
49
  }
50

51
  @Override
52
  public boolean contains(Object o) {
53
    return list.contains(o);
×
54
  }
55

56
  @Override
57
  public Iterator iterator() {
58
    return list.iterator();
×
59
  }
60

61
  @Override
62
  public Object[] toArray() {
63
    return list.toArray();
×
64
  }
65

66
  @Override
67
  public Object[] toArray(Object a[]) {
68
    return list.toArray(a);
×
69
  }
70

71
  @Override
72
  public boolean add(Object o) {
73
    return list.add(o);
×
74
  }
75

76
  @Override
77
  public boolean remove(Object o) {
78
    return list.remove(o);
×
79
  }
80

81
  @Override
82
  public boolean containsAll(Collection c) {
83
    return list.containsAll(c);
×
84
  }
85

86
  @Override
87
  public boolean addAll(Collection c) {
88
    return list.addAll(c);
×
89
  }
90

91
  @Override
92
  public boolean addAll(int index, Collection c) {
93
    return list.addAll(index, c);
×
94
  }
95

96
  @Override
97
  public boolean removeAll(Collection c) {
98
    return list.removeAll(c);
×
99
  }
100

101
  @Override
102
  public boolean retainAll(Collection c) {
103
    return list.retainAll(c);
×
104
  }
105

106
  @Override
107
  public void clear() {
108
    list.clear();
×
109
  }
×
110

111
  @Override
112
  public Object get(int index) {
113
    return list.get(index);
×
114
  }
115

116
  @Override
117
  public Object set(int index, Object element) {
118
    return list.set(index, element);
×
119
  }
120

121
  @Override
122
  public void add(int index, Object element) {
123
    list.add(index, element);
×
124
  }
×
125

126
  @Override
127
  public Object remove(int index) {
128
    return list.remove(index);
×
129
  }
130

131
  @Override
132
  public int indexOf(Object o) {
133
    return list.indexOf(o);
×
134
  }
135

136
  @Override
137
  public int lastIndexOf(Object o) {
138
    return list.lastIndexOf(o);
×
139
  }
140

141
  @Override
142
  public ListIterator listIterator() {
143
    return list.listIterator();
×
144
  }
145

146
  @Override
147
  public ListIterator listIterator(int index) {
148
    return list.listIterator(index);
×
149
  }
150

151
  @Override
152
  public List subList(int fromIndex, int toIndex) {
153
    return list.subList(fromIndex, toIndex);
×
154
  }
155

156
  @Override
157
  public String toString() {
158
    StringBuilder builder = new StringBuilder();
×
159
    for (Object element : list) {
×
160
      builder.append(element);
×
161
      builder.append("\r\n");
×
162
    }
×
163
    return builder.toString();
×
164
  }
165

166
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc