fix #11
[storage-units.git] / storage-units-mongodb / src / main / java / de / xn__ho_hia / storage_unit / mongodb / DecimalStorageUnitCodec.java
bloba61aae2d431fd6f82ea9d9b4c860f79b89bd96e9
1 /*
2 * This file is part of storage-units. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of storage-units,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
7 package de.xn__ho_hia.storage_unit.mongodb;
9 import java.math.BigInteger;
11 import org.eclipse.jdt.annotation.NonNull;
13 import de.xn__ho_hia.storage_unit.StorageUnit;
14 import de.xn__ho_hia.storage_unit.StorageUnits;
16 /**
19 public final class DecimalStorageUnitCodec extends AbstractStorageUnitCodec {
21 @Override
22 protected StorageUnit<?> convertToStorageUnit(@NonNull final BigInteger value) {
23 return StorageUnits.decimalValueOf(value);