Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangByte


      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangByte byteValue = (OtpErlangByte) arg;
      resultHolder.append(byteValue.longValue());
    }
View Full Code Here


      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangByte byteValue = (OtpErlangByte) arg;
      resultHolder.append(byteValue.longValue());
    }
View Full Code Here

    return term instanceof OtpErlangByte;
  }

  @Override
  public List<OtpErlangObject> instantiateAllAlts() {
    return Collections.singletonList((OtpErlangObject)new OtpErlangByte((byte)42));
  }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangByte byteValue = (OtpErlangByte) arg;
      resultHolder.append(byteValue.longValue());
    }
View Full Code Here

    if (attributes.arity() != 0) throw new IllegalArgumentException("ByteSignature does not accept attributes");
  }
 
    @Override
  public OtpErlangByte instantiate() {
        return new OtpErlangByte((byte)42);
    }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangByte byteValue = (OtpErlangByte) arg;
      resultHolder.append(byteValue.longValue());
    }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangByte byteValue = (OtpErlangByte) arg;
      resultHolder.append(byteValue.longValue());
    }
View Full Code Here

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

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

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

    if (obj instanceof byte[]) {
      return new OtpErlangBinary((byte[]) obj);
    } else if (obj instanceof Boolean) {
      return new OtpErlangBoolean((Boolean) obj);
    } else if (obj instanceof Byte) {
      return new OtpErlangByte((Byte) obj);
    } else if (obj instanceof Character) {
      return new OtpErlangChar((Character) obj);
    } else if (obj instanceof Double) {
      return new OtpErlangDouble((Double) obj);
    } else if (obj instanceof Float) {
View Full Code Here

TOP

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

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.