Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangShort


* @version $Rev$ $Date$
*/
public class ShortTypeHelper implements TypeHelper {

  public OtpErlangObject toErlang(Object object) {
    return new OtpErlangShort((Short) object);
  }
View Full Code Here


        }
        if (obj instanceof Byte) {
            return new OtpErlangByte((Byte) obj);
        }
        if (obj instanceof Short) {
            return new OtpErlangShort((Short) obj);
        }
        if (obj instanceof Integer) {
            return new OtpErlangInt((Integer) obj);
        }
        if (obj instanceof Long) {
View Full Code Here

    } 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) {
      return new OtpErlangString((String) obj);
    } else {
      throw new ErlangConversionException(
          "Could not convert Java object of type [" + obj.getClass()
View Full Code Here

TOP

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

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.