Examples of longValue()


Examples of booton.translator.annotation.PrimitiveMarker.longValue()

        assert annotation != null;
        assert annotation instanceof Annotation;
        assert annotation instanceof PrimitiveMarker;
        assert annotation.intValue() == 5;
        assert annotation.booleanValue();
        assert annotation.longValue() == 10;
        assert annotation.annotationType() == PrimitiveMarker.class;

        assert annotation == Annotated.class.getAnnotation(PrimitiveMarker.class);
    }
View Full Code Here

Examples of br.com.objectos.comuns.base.br.Cnpj.longValue()

    @Override
    public String toString() {
      StringBuilder s = new StringBuilder();

      Cnpj cnpj = (Cnpj) cadastro;
      ColunaWriter<Long> inscricaoCol = inscricao.set(cnpj.longValue());
      s.append(inscricaoCol.get());

      s.append("  ");

      ColunaWriter<String> avalistaCol = avalista.set(nome);
View Full Code Here

Examples of br.com.objectos.way.base.br.Cnpj.longValue()

    @Override
    public String toString() {
      StringBuilder s = new StringBuilder();

      Cnpj cnpj = (Cnpj) cadastro;
      ColunaWriter<Long> inscricaoCol = inscricao.set(cnpj.longValue());
      s.append(inscricaoCol.get());

      s.append("  ");

      ColunaWriter<String> avalistaCol = avalista.set(nome);
View Full Code Here

Examples of br.com.objectos.way.boleto.NossoNumero.longValue()

  public void numero() {
    String numero = "1234";

    NossoNumero res = new NossoNumero(numero);

    assertThat(res.longValue(), equalTo(123l));
    assertThat(res.getDigito(), equalTo('4'));
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void nao_numero() {
View Full Code Here

Examples of br.com.objectos.way.boleto.NumeroBancario.longValue()

  public void numero_com_digito() {
    String numero = "123-4";

    NumeroBancario res = new NumeroBancario(numero);

    assertThat(res.longValue(), equalTo(123l));
    assertThat(res.getDigito(), equalTo('4'));
  }

  public void numero_sem_digito() {
    String numero = "789";
View Full Code Here

Examples of com.alibaba.fastjson.parser.JSONLexer.longValue()

                String val = lexer.numberString();
                lexer.nextToken(JSONToken.COMMA);
                return (T) Double.valueOf(Double.parseDouble(val));
            }
           
            long val = lexer.longValue();
            lexer.nextToken(JSONToken.COMMA);

            if (clazz == short.class || clazz == Short.class) {
                return (T) Short.valueOf((short) val);
            }
View Full Code Here

Examples of com.alibaba.fastjson.parser.JSONScanner.longValue()

    public void ftest_parse_long() throws Exception {
        System.out.println(System.currentTimeMillis());
        JSONScanner lexer = new JSONScanner("1293770846476");
        lexer.scanNumber();
        Assert.assertEquals(new Long(1293770846476L), (Long) lexer.integerValue());
        Assert.assertEquals(1293770846476L, lexer.longValue());
    }

    public void ftest_parse_long_1() throws Exception {
        System.out.println(System.currentTimeMillis());
        JSONScanner lexer = new JSONScanner(Long.toString(Long.MAX_VALUE));
View Full Code Here

Examples of com.dtrules.interpreter.IRObject.longValue()

      public void execute(DTState state) throws RulesException {
          IRObject o2 = state.datapop();
          IRObject o1 = state.datapop();
        long number2 = o2.longValue();
        long number1 = o1.longValue();
        state.datapush(RBoolean.getRBoolean(number1 > number2));
      }
    }   

      /**
 
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangByte.longValue()

    }

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

    @Override
    public OtpErlangObject parseObject(@SuppressWarnings("unused") Lexer lexer) {
      throw new UnsupportedOperationException(
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangChar.longValue()

    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }

    @Override
    public OtpErlangObject parseObject(@SuppressWarnings("unused") Lexer lexer) {
      throw new UnsupportedOperationException(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.