13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.xml.internal.bind.v2.runtime.reflect;
27
28 import com.sun.xml.internal.bind.api.AccessorException;
29 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer;
30
31 /**
32 * {@link Lister} for primitive type arrays.
33 *
34 * <p>
35 * B y t e ArrayLister is used as the master to generate the rest of the
36 * lister classes. Do not modify the generated copies.
37 */
38 final class PrimitiveArrayListerDouble<BeanT> extends Lister<BeanT,double[],Double,PrimitiveArrayListerDouble.DoubleArrayPack> {
39
40 private PrimitiveArrayListerDouble() {
41 }
42
43 /*package*/ static void register() {
44 Lister.primitiveArrayListers.put(Double.TYPE,new PrimitiveArrayListerDouble());
45 }
46
47 public ListIterator<Double> iterator(final double[] objects, XMLSerializer context) {
48 return new ListIterator<Double>() {
49 int idx=0;
50 public boolean hasNext() {
51 return idx<objects.length;
52 }
53
54 public Double next() {
55 return objects[idx++];
56 }
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.xml.internal.bind.v2.runtime.reflect;
27
28 import com.sun.xml.internal.bind.api.AccessorException;
29 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer;
30
31 /**
32 * {@link Lister} for primitive type arrays.
33 * <p><b>
34 * Auto-generated, do not edit.
35 * </b></p>
36 * <p>
37 * B y t e ArrayLister is used as the master to generate the rest of the
38 * lister classes. Do not modify the generated copies.
39 * </p>
40 */
41 final class PrimitiveArrayListerDouble<BeanT> extends Lister<BeanT,double[],Double,PrimitiveArrayListerDouble.DoubleArrayPack> {
42
43 private PrimitiveArrayListerDouble() {
44 }
45
46 /*package*/ static void register() {
47 Lister.primitiveArrayListers.put(Double.TYPE,new PrimitiveArrayListerDouble());
48 }
49
50 public ListIterator<Double> iterator(final double[] objects, XMLSerializer context) {
51 return new ListIterator<Double>() {
52 int idx=0;
53 public boolean hasNext() {
54 return idx<objects.length;
55 }
56
57 public Double next() {
58 return objects[idx++];
59 }
|