1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package dev.metaschema.core.metapath.item.atomic.impl;
7   
8   import java.math.BigInteger;
9   
10  import dev.metaschema.core.datatype.adapter.IntegerAdapter;
11  import dev.metaschema.core.datatype.adapter.MetaschemaDataTypeProvider;
12  import edu.umd.cs.findbugs.annotations.NonNull;
13  
14  /**
15   * An implementation of a Metapath atomic item containing an integer data value.
16   */
17  public class IntegerItemImpl
18      extends AbstractIntegerItem {
19  
20    /**
21     * Construct a new item with the provided {@code value}.
22     *
23     * @param value
24     *          the value to wrap
25     */
26    public IntegerItemImpl(@NonNull BigInteger value) {
27      super(value);
28    }
29  
30    @Override
31    public IntegerAdapter getJavaTypeAdapter() {
32      return MetaschemaDataTypeProvider.INTEGER;
33    }
34  }