2 * SPDX-FileCopyrightText: The Storage-Units Authors
3 * SPDX-License-Identifier: 0BSD
5 package wtf
.metio
.storageunits
.mapstruct
;
7 import wtf
.metio
.storageunits
.model
.StorageUnit
;
8 import wtf
.metio
.storageunits
.model
.StorageUnits
;
11 * Maps {@link Long} values to binary storage units.
13 public final class LongToBinaryUnitMapper
{
15 public StorageUnit
<?
> convert(final Long value
) {
16 return StorageUnits
.binaryValueOf(value
);