MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / IonSexpLite

Class IonSexpLite

src/main/java/com/amazon/ion/impl/lite/IonSexpLite.java:13–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13final class IonSexpLite
14 extends IonSequenceLite
15 implements IonSexp
16{
17 private static final int HASH_SIGNATURE =
18 IonType.SEXP.toString().hashCode();
19
20 IonSexpLite(ContainerlessContext context, boolean isNull)
21 {
22 super(context, isNull);
23 }
24
25 IonSexpLite(IonSexpLite existing, IonContext context)
26 {
27 super(existing, context);
28 }
29
30 /**
31 * Constructs a sexp value
32 *
33 * @param elements
34 * the initial set of child elements. If <code>null</code>, then the new
35 * instance will have <code>{@link #isNullValue()} == true</code>.
36 *
37 * @throws ContainedValueException if any value in <code>elements</code>
38 * has <code>{@link IonValue#getContainer()} != null</code>.
39 */
40 IonSexpLite(ContainerlessContext context,
41 Collection<? extends IonValue> elements)
42 throws ContainedValueException
43 {
44 super(context, elements);
45 }
46
47 @Override
48 public IonSexpLite clone()
49 {
50 return (IonSexpLite) deepClone(false);
51 }
52
53 @Override
54 IonValueLite shallowClone(IonContext context)
55 {
56 return new IonSexpLite(this, context);
57 }
58
59 @Override
60 int hashSignature() {
61 return HASH_SIGNATURE;
62 }
63
64 @Override
65 public IonType getTypeSlow()
66 {
67 return IonType.SEXP;
68 }
69
70 @Override

Callers

nothing calls this directly

Calls 2

hashCodeMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…