Create a price from a net amount.

@param aNetAmount
The net amount to use. May not be <code>null</code>.
@param aVATItem
The VAT item to use. May not be <code>null</code>.
@return The created {@link Price}
344757
@Nonnull
  public static Price createFromNetAmount (@Nonnull final ICurrencyValue aNetAmount, @Nonnull final IVATItem aVATItem)
  {
    return new Price (aNetAmount, aVATItem);
  }
8506
static Bytes createViaDataOutput(@NonNull IOConsumer<ExtendedDataOutput> creator, int expectedSize)
		throws IOException
	{
		Objects.requireNonNull(creator);
		if(expectedSize <= 0) throw new IllegalArgumentException("expectedSize should be larger than 0");

		ByteArrayOutputStream out = new ByteArrayOutputStream(expectedSize);
		try(ExtendedDataOutput dataOut = new ExtendedDataOutputStream(out))
		{
			creator.accept(dataOut);
		}
		return Bytes.create(out.toByteArray());
	}
798644
public function setIsVirtual(string $is_virtual = "F") : CNabuDataObject
    {
        if ($is_virtual === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$is_virtual")
            );
        }
        $this->setValue('nb_commerce_product_is_virtual', $is_virtual);
        
        return $this;
    }
1279561
protected final CnvBnRsToFloat<RS>
    createPutCnvBnRsToFloat() throws Exception {
    CnvBnRsToFloat<RS> convrt = new CnvBnRsToFloat<RS>();
    //assigning fully initialized object:
    this.convertersMap
      .put(CnvBnRsToFloat.class.getSimpleName(), convrt);
    return convrt;
  }
1326947
public static Integer safeAdd(final Integer v1, final Integer v2) {
        Integer total = v1;
        if (v1 != null && v2 != null) {
            total = v1 + v2;
        } else if (v2 != null) {
            total = v2;
        }
        return total;
    }
124321
JavaURLContext createJavaURLContext(Hashtable<?, ?> envmt, Name name) {
        return new JavaURLContext(envmt, helperServices, name);
    }
74042
public static TransientValueData createTransientCopy(ValueData valueData, int orderNumber) throws IOException
   {
      if (valueData instanceof TransientValueData)
      {
         return createTransientCopy(((TransientValueData)valueData).delegate, orderNumber);
      }
      else if (valueData instanceof AbstractValueData)
      {
         return ((AbstractValueData)valueData).createTransientCopy(orderNumber);
      }
      else
      {
         return new TransientValueData(orderNumber, valueData.getAsByteArray());
      }
   }
1263902
public static Trade adaptTrade(ANXTrade anxTrade) {

    OrderType orderType = adaptSide(anxTrade.getTradeType());
    BigDecimal amount = anxTrade.getAmount();
    BigDecimal price = anxTrade.getPrice();
    CurrencyPair currencyPair = adaptCurrencyPair(anxTrade.getItem(), anxTrade.getPriceCurrency());
    Date dateTime = DateUtils.fromMillisUtc(anxTrade.getTid());
    final String tradeId = String.valueOf(anxTrade.getTid());

    return new Trade(orderType, amount, currencyPair, price, dateTime, tradeId);
  }
1093613
public function addItem($name, $price, $ammount = 1, $id = '-')
    {
        $this->items->push(Collection::make([
            'name'       => $name,
            'price'      => $price,
            'ammount'    => $ammount,
            'totalPrice' => number_format(bcmul($price, $ammount, $this->decimals), $this->decimals),
            'id'         => $id,
        ]));

        return $this;
    }
794886
def getVATAmount(self):
        
        vat = self.getVAT()
        price = self.getPrice()
        return Decimal(price) * Decimal(vat) / 100
226651
public static com.liferay.commerce.model.CommerceOrderNote createCommerceOrderNote(
		long commerceOrderNoteId) {
		return getService().createCommerceOrderNote(commerceOrderNoteId);
	}
50572
public static VatIdMapSharedConstants create() {
    if (vatIdMapConstants == null) { // NOPMD it's thread save!
      synchronized (VatIdMapConstants.class) {
        if (vatIdMapConstants == null) {
          vatIdMapConstants = GWT.create(VatIdMapConstants.class);
        }
      }
    }
    return vatIdMapConstants;
  }
734256
function postInitializeObjectAttribute( $objectAttribute, $currentVersion, $originalContentObjectAttribute )
    {
        $contentClassAttribute = $objectAttribute->contentClassAttribute();
        $multiprice = new eZMultiPrice( $contentClassAttribute, $objectAttribute );

        if ( $currentVersion == false )
        {
            $defaultCurrency = $contentClassAttribute->attribute( self::DEFAULT_CURRENCY_CODE_FIELD );
            $multiprice->setCustomPrice( $defaultCurrency, '0.00' );
            $multiprice->updateAutoPriceList();
            $multiprice->store();
        }
        else
        {
            $originalMultiprice = $originalContentObjectAttribute->content();
            $multiprice = new eZMultiPrice( $contentClassAttribute, $objectAttribute );

            foreach ( $originalMultiprice->priceList() as $price )
            {
                $multiprice->setPriceByCurrency( $price->attribute( 'currency_code' ), $price->attribute( 'value' ), $price->attribute( 'type') );
            }

            $multiprice->store();
        }
    }
571879
@Override
	public com.liferay.commerce.product.type.virtual.order.model.CommerceVirtualOrderItem addCommerceVirtualOrderItem(
		com.liferay.commerce.product.type.virtual.order.model.CommerceVirtualOrderItem commerceVirtualOrderItem) {
		return _commerceVirtualOrderItemLocalService.addCommerceVirtualOrderItem(commerceVirtualOrderItem);
	}
425696
@Internal
    public static NettyMutableHttpResponse getOrCreate(NettyHttpRequest<?> request) {
        return getOr(request, io.micronaut.http.HttpResponse.ok());
    }
993983
public static double add(Double v1, Double v2) {
		return add((Number) v1, (Number) v2).doubleValue();
	}
860178
public static Topup create(Map<String, Object> params) throws StripeException {
    return create(params, (RequestOptions) null);
  }