Skip to content

Package: TypeSerializerBuilder

TypeSerializerBuilder

nameinstructionbranchcomplexitylinemethod
TypeSerializerBuilder(List, Class, Customization, JsonbContext, boolean)
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 7 C: 0
0%
M: 1 C: 0
0%
getChain()
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%
getClazz()
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%
getCustomization()
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%
getJsonbContext()
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%
isKey()
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: * or the Eclipse Distribution License v. 1.0 which is available at
8: * http://www.eclipse.org/org/documents/edl-v10.php.
9: *
10: * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11: */
12:
13: package org.eclipse.yasson.internal.serializer.types;
14:
15: import java.lang.reflect.Type;
16: import java.util.List;
17:
18: import org.eclipse.yasson.internal.JsonbContext;
19: import org.eclipse.yasson.internal.model.customization.Customization;
20:
21: /**
22: * Type serializer data holder object used during serializer creation.
23: */
24: class TypeSerializerBuilder {
25:
26: private final List<Type> chain;
27: private final Class<?> clazz;
28: private final Customization customization;
29: private final JsonbContext jsonbContext;
30: private final boolean key;
31:
32: TypeSerializerBuilder(List<Type> chain,
33: Class<?> clazz,
34: Customization customization,
35: JsonbContext jsonbContext,
36: boolean key) {
37: this.chain = chain;
38: this.clazz = clazz;
39: this.customization = customization;
40: this.jsonbContext = jsonbContext;
41: this.key = key;
42: }
43:
44: public List<Type> getChain() {
45: return chain;
46: }
47:
48: public Class<?> getClazz() {
49: return clazz;
50: }
51:
52: public Customization getCustomization() {
53: return customization;
54: }
55:
56: public JsonbContext getJsonbContext() {
57: return jsonbContext;
58: }
59:
60: public boolean isKey() {
61: return key;
62: }
63: }