Examples of val()


Examples of clojure.lang.IMapEntry.val()

    int lineNr = -1;
    if (obj.meta() == null) {
      return lineNr;
    }
    IMapEntry line = obj.meta().entryAt(KEYWORD_LINE);
    if (line != null && line.val() instanceof Number) {
      lineNr = ((Number) line.val()).intValue();
    }
    return lineNr;
  }
View Full Code Here

Examples of clojure.lang.IMapEntry.val()

    if (obj.meta() == null) {
      return lineNr;
    }
    IMapEntry line = obj.meta().entryAt(KEYWORD_LINE);
    if (line != null && line.val() instanceof Number) {
      lineNr = ((Number) line.val()).intValue();
    }
    return lineNr;
  }

  private String safeToString(Object value) {
View Full Code Here

Examples of clojure.lang.MapEntry.val()

    public ClojureQuery(Map<String, Object> query, int skip, int limit, IPersistentMap order) {
        super(query, skip, limit);
        Iterator<MapEntry> i = order.iterator();
        while (i.hasNext()) {
            MapEntry entry = i.next();
            if (entry.val().equals(DESC)) {
                field(toString(entry.key())).orderDescending();
            } else {
                field(toString(entry.key())).orderAscending();
            }
        }
View Full Code Here

Examples of com.codeborne.selenide.SelenideElement.val()

  }

  @Test
  public void valMethodSelectsOptionInCaseOfSelectBox() {
    SelenideElement select = $(By.xpath("//select[@name='domain']"));
    select.val("myrambler.ru");

    select.getSelectedOption().shouldBe(selected);
    assertEquals("myrambler.ru", select.getSelectedValue());
    assertEquals("@myrambler.ru", select.getSelectedText());
  }
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.val()

    Tabs.Options.create().tabTemplate("<li><a href=\"#{href}\">#{label}</a> <span class=\"ui-icon ui-icon-close\">Remove Tab</span></li>")) //
    .bind(Tabs.Event.add, new Function() {
      @Override
      public boolean f(Event e, Object data) {
        final Tabs.Event event = ((JavaScriptObject) data).cast();
        String tab_content = tab_content_input.val();
        if(tab_content == null || tab_content.isEmpty()) {
          tab_content = "Tab " + tab_counter + " content.";
        }
        $(event.panel()).append("<p>" + tab_content + "</p>");
View Full Code Here

Examples of com.nr.sf.Fermi.val()

    // Test cases with theta=0
    // Fermi(k,eta,0)=exp(eta)*LerchPhi(exp(eta),k+1,1)
    Fermi dirac = new Fermi();

    for (i=0;i<N;i++) {
      zz[i]=dirac.val(k[i],eta[i],0.0);
      expect[i]=exp(gammln(k[i]+1.0))*exp(eta[i])*lerchphi[i];
//      System.out.printf(setw(15) << expect[i] << setw(15) << zz[i];
//      System.out.printf(setw(15) << (zz[i]/expect[i]-1.0));
    }

View Full Code Here

Examples of com.nr.sf.Fermi.val()

    // Limiting cases for large eta and k=1/2
    maxerr=0.0;
    for (i=0;i<N;i++) {
      arg=1000.0;
      theta=0.1*(i+2);
      zz[i]=dirac.val(0.5,arg,theta);
      u=1.0+arg*theta;
      y=sqrt(SQR(u)-1.0);
      x=log((y+sqrt(SQR(y)+4.0))/2.0);
      expect[i]=(y*u-x)/pow(2.0*theta,1.5);
      err=abs(zz[i]/expect[i]-1.0);
View Full Code Here

Examples of com.trifork.clj_ds.IMapEntry.val()

     
        EObject key = get_key(obj);
       
        IMapEntry candidateEntry = map.entryAt(key);
        if (candidateEntry == null) return null;
        EObject candidate = (EObject)candidateEntry.val();
        if (candidate != null && obj.equalsExactly(candidate)) {
          try {
            map = map.without(key);
            set(map);
          } catch (Exception e) {
View Full Code Here

Examples of net.sf.kpex.prolog.MultiVar.val()

  @Override
  public int exec(Prog p)
  {
    MultiVar V = (MultiVar) getArg(0);
    return putArg(1, V.val(), p);
  }
}
View Full Code Here

Examples of org.jsoup.nodes.Element.val()

    Document doc = Jsoup.parse(pBankResponse.body());
    Element element = doc.select("#viewPeriod option[selected]").first();

    Element previous = element.previousElementSibling();
    if (previous != null) {
      pagination.setPrev(Integer.parseInt(previous.val()));
    }

    Element next = element.nextElementSibling();
    if (next != null && isDateWithinRange(next)) {
      pagination.setNext(Integer.parseInt(next.val()));
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.