Java XML Data Type Converter printPriceType(Long value)

Here you can find the source of printPriceType(Long value)

Description

print Price Type

License

Apache License

Declaration

public static String printPriceType(Long value) 

Method Source Code

//package com.java2s;
/*// ww  w .  j  a  v  a  2 s .c  o m
 * Copyright 2015-2016 OpenEstate.org.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String printPriceType(Long value) {
        return (value != null) ? DatatypeConverter.printLong(value) : "x";
    }
}

Related

  1. printBytes(byte[] data)
  2. printDecimal(BigDecimal value, BigDecimal min, BigDecimal max, int precision, boolean zeroIncluded)
  3. printIntToInteger(int value)
  4. printLongitude(BigDecimal value)
  5. printPositiveDecimal(BigDecimal value)
  6. printZahl20(BigInteger value)
  7. printZahl31(BigDecimal value)
  8. printZimmeranzahl(BigDecimal value)
  9. readKey(Reader reader, String algorithm)