Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangInt


        }
    }

    private final void testIntValue(int value) {
        ErlangValue eVal = new ErlangValue(value);
        ErlangValue eValOtp = new ErlangValue(new OtpErlangInt(value));

        assertEquals(value, eVal.intValue());
        assertEquals(value, eValOtp.intValue());
    }
View Full Code Here


            OtpErlangObject valueOtp_i;

            if (value_i instanceof Boolean) {
                valueOtp_i = new OtpErlangBoolean((Boolean) value_i);
            } else if (value_i instanceof Integer) {
                valueOtp_i = new OtpErlangInt((Integer) value_i);
            } else if (value_i instanceof Long) {
                valueOtp_i = new OtpErlangLong((Long) value_i);
            } else if (value_i instanceof BigInteger) {
                valueOtp_i = new OtpErlangLong((BigInteger) value_i);
            } else if (value_i instanceof Double) {
View Full Code Here

    protected OtpErlangObject convertJavaToScalarisJSON_value(final Object value)
            throws ClassCastException {
        if (value == null) {
            return CommonErlangObjects.nullAtom;
        } else if (value instanceof Integer) {
            return new OtpErlangInt((Integer) value);
        } else if (value instanceof Long) {
            return new OtpErlangLong((Long) value);
        } else if (value instanceof BigInteger) {
            return new OtpErlangLong((BigInteger) value);
        } else if (value instanceof Double) {
View Full Code Here

    } else if (obj instanceof Double) {
      return new OtpErlangDouble((Double) obj);
    } else if (obj instanceof Float) {
      return new OtpErlangFloat((Float) obj);
    } else if (obj instanceof Integer) {
      return new OtpErlangInt((Integer) obj);
    } else if (obj instanceof Long) {
      return new OtpErlangLong((Long) obj);
    } else if (obj instanceof Short) {
      return new OtpErlangShort((Short) obj);
    } else if (obj instanceof String) {
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangInt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.