Skip to content

Package: PrimitiveTypeContainer

PrimitiveTypeContainer

nameinstructionbranchcomplexitylinemethod
PrimitiveTypeContainer(byte, short, int, long, float, double, char, boolean)
M: 27 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 10 C: 0
0%
M: 1 C: 0
0%
create(byte, short, int, long, float, double, char, boolean)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getBooleanType()
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%
getByteType()
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%
getCharType()
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%
getDoubleType()
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%
getFloatType()
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%
getIntType()
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%
getLongType()
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%
getShortType()
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%

Coverage

1: /*
2: * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Public License v. 2.0, which is available at
6: * http://www.eclipse.org/legal/epl-2.0.
7: *
8: * This Source Code may also be made available under the following Secondary
9: * Licenses when the conditions for such availability set forth in the
10: * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11: * version 2 with the GNU Classpath Exception, which is available at
12: * https://www.gnu.org/software/classpath/license.html.
13: *
14: * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15: */
16:
17: /*
18: * $Id$
19: */
20:
21: package ee.jakarta.tck.json.bind.customizedmapping.instantiation.model;
22:
23: import jakarta.json.bind.annotation.JsonbCreator;
24: import jakarta.json.bind.annotation.JsonbProperty;
25:
26: public class PrimitiveTypeContainer {
27:
28: private final byte byteType;
29: private final short shortType;
30: private final int intType;
31: private final long longType;
32: private final float floatType;
33: private final double doubleType;
34: private final char charType;
35: private final boolean booleanType;
36:
37: public PrimitiveTypeContainer(byte byteType,
38: short shortType,
39: int intType,
40: long longType,
41: float floatType,
42: double doubleType,
43: char charType,
44: boolean booleanType) {
45: this.byteType = byteType;
46: this.shortType = shortType;
47: this.intType = intType;
48: this.longType = longType;
49: this.floatType = floatType;
50: this.doubleType = doubleType;
51: this.charType = charType;
52: this.booleanType = booleanType;
53: }
54:
55: @JsonbCreator
56: public static PrimitiveTypeContainer create(@JsonbProperty("byteType") byte byteType,
57: @JsonbProperty("shortType") short shortType,
58: @JsonbProperty("intType") int intType,
59: @JsonbProperty("longType") long longType,
60: @JsonbProperty("floatType") float floatType,
61: @JsonbProperty("doubleType") double doubleType,
62: @JsonbProperty("charType") char charType,
63: @JsonbProperty("booleanType") boolean booleanType) {
64: return new PrimitiveTypeContainer(byteType, shortType, intType, longType, floatType, doubleType, charType, booleanType);
65: }
66:
67: public byte getByteType() {
68: return byteType;
69: }
70:
71: public short getShortType() {
72: return shortType;
73: }
74:
75: public int getIntType() {
76: return intType;
77: }
78:
79: public long getLongType() {
80: return longType;
81: }
82:
83: public float getFloatType() {
84: return floatType;
85: }
86:
87: public double getDoubleType() {
88: return doubleType;
89: }
90:
91: public char getCharType() {
92: return charType;
93: }
94:
95: public boolean getBooleanType() {
96: return booleanType;
97: }
98: }