Example usage for java.lang Byte valueOf

List of usage examples for java.lang Byte valueOf

Introduction

In this page you can find the example usage for java.lang Byte valueOf.

Prototype

public static Byte valueOf(String s) throws NumberFormatException 

Source Link

Document

Returns a Byte object holding the value given by the specified String .

Usage

From source file:org.op4j.functions.FnFloat.java

/**
* <p>/*from  www. j a v a 2  s.  c o m*/
* It divides the target element by the given divisor and returns its result with the
* precision and rounding mode specified by mathContext
* </p>
* 
* @param divisor the divisor
* @param mathContext the {@link MathContext} to define {@link RoundingMode} and precision
* @return the result of target/divisor
*/
public final static Function<Float, Float> divideBy(byte divisor, MathContext mathContext) {
    return divideBy(Byte.valueOf(divisor), mathContext);
}

From source file:org.op4j.functions.FnShort.java

/**
* <p>/*from   ww w  .  ja  v a 2  s.c o m*/
* It divides the target element by the given divisor and returns its result with the
* precision and rounding mode specified by mathContext
* </p>
* 
* @param divisor the divisor
* @param mathContext the {@link MathContext} to define {@link RoundingMode} and precision
* @return the result of target/divisor
*/
public final static Function<Short, Short> divideBy(byte divisor, MathContext mathContext) {
    return divideBy(Byte.valueOf(divisor), mathContext);
}

From source file:org.op4j.functions.FnInteger.java

/**
* <p>//  w  w  w . j a va  2 s.c  o  m
* It divides the target element by the given divisor and returns its result with the
* precision and rounding mode specified by mathContext
* </p>
* 
* @param divisor the divisor
* @param mathContext the {@link MathContext} to define {@link RoundingMode} and precision
* @return the result of target/divisor
*/
public final static Function<Integer, Integer> divideBy(byte divisor, MathContext mathContext) {
    return divideBy(Byte.valueOf(divisor), mathContext);
}

From source file:it.classhidra.core.controller.bean.java

public void set(String name, byte value) {
    Object primArgument = getPrimitiveArgument(name, String.valueOf(value));
    try {/*  w  w w.  j  av  a2 s.co  m*/
        if (primArgument != null)
            setCampoValueWithPoint(name, primArgument);
        else
            setCampoValueWithPoint(name, Byte.valueOf(value));
    } catch (Exception e) {
    }
}

From source file:org.op4j.functions.FnBigInteger.java

/**
* <p>/*from w  ww. j av  a 2s  .co  m*/
* It multiplies target by multiplicand and returns its value
* </p>
* 
* @param multiplicand the multiplicand
* @return the result of target * multiplicand
*/
public final static Function<BigInteger, BigInteger> multiplyBy(byte multiplicand) {
    return multiplyBy(Byte.valueOf(multiplicand));
}

From source file:com.workday.autoparse.json.parser.JsonParserUtils.java

public static Byte nextByte(JsonReader reader, String name) throws IOException {
    if (handleNull(reader)) {
        return 0;
    }/*ww  w. ja v  a 2 s . c  o  m*/
    assertType(reader, name, JsonToken.NUMBER, JsonToken.STRING);
    return Byte.valueOf(reader.nextString());
}

From source file:org.op4j.functions.FnLong.java

/**
* <p>//from  w w w . ja v a 2 s  .c  o m
* It divides the target element by the given divisor and returns its result rounded
* based on the specified rounding mode
* </p>
* 
* @param divisor the divisor
* @param roundingMode the {@link RoundingMode} 
* @return the result of target/divisor
*/
public final static Function<Long, Long> divideBy(byte divisor, RoundingMode roundingMode) {
    return divideBy(Byte.valueOf(divisor), roundingMode);
}

From source file:org.op4j.functions.FnFloat.java

/**
* <p>/* w w  w .j a  v  a 2  s  . co  m*/
* It divides the target element by the given divisor and returns its result rounded
* based on the specified rounding mode
* </p>
* 
* @param divisor the divisor
* @param roundingMode the {@link RoundingMode} 
* @return the result of target/divisor
*/
public final static Function<Float, Float> divideBy(byte divisor, RoundingMode roundingMode) {
    return divideBy(Byte.valueOf(divisor), roundingMode);
}

From source file:org.op4j.functions.FnShort.java

/**
* <p>//from   w w w . jav a2 s .  c  o  m
* It divides the target element by the given divisor and returns its result rounded
* based on the specified rounding mode
* </p>
* 
* @param divisor the divisor
* @param roundingMode the {@link RoundingMode} 
* @return the result of target/divisor
*/
public final static Function<Short, Short> divideBy(byte divisor, RoundingMode roundingMode) {
    return divideBy(Byte.valueOf(divisor), roundingMode);
}

From source file:org.op4j.functions.FnInteger.java

/**
* <p>/*from   w w w  .j a va2  s.  c o  m*/
* It divides the target element by the given divisor and returns its result rounded
* based on the specified rounding mode
* </p>
* 
* @param divisor the divisor
* @param roundingMode the {@link RoundingMode} 
* @return the result of target/divisor
*/
public final static Function<Integer, Integer> divideBy(byte divisor, RoundingMode roundingMode) {
    return divideBy(Byte.valueOf(divisor), roundingMode);
}