Examples of first()


Examples of au.csiro.snorocket.core.util.RoleSet.first()

     * @param b
     */
    private void processNewEdge(int role, int b) {
        final RoleSet roleClosure = getRoleClosure(role);
        processRole(role, b);
        for (int s = roleClosure.first(); s >= 0; s = roleClosure.next(s + 1)) {
            if (s == role)
                continue;
            processRole(s, b);
        }
    }
View Full Code Here

Examples of clojure.lang.ISeq.first()

            if (v instanceof Seqable) {
                ISeq seq = ((Seqable) v).seq();
                while (seq != null) {
                    bytes.append(k);
                    bytes.append(COLON, SP);
                    bytes.append(seq.first().toString(), HttpUtils.UTF_8);
                    bytes.append(CR, LF);
                    seq = seq.next();
                }
            } else {
                bytes.append(k);
View Full Code Here

Examples of com.alibaba.daybits.DayBits.first()

    public Long evaluate(String text) {       
        DayBits daybits = DayBitsUtils.parse(text);
        if (daybits == null) {
            return null;
        }
        return daybits.first();
    }
   
    public Long evaluate(String text, String startDate) {
        return evaluate(text, startDate, null);
    }
View Full Code Here

Examples of com.baasbox.service.query.PartsParser.first()

    PartsParser parser = new PartsParser(parts);
    String jn = parser.treeFields();
    assertEquals(jn, "field0.field1.field2");
    assertEquals(parser.last().getName(), "field2");
    assertEquals(parser.lastParent().getName(), "field1");
    assertEquals(parser.first().getName(), "field0");
   
   
  }
 
 
View Full Code Here

Examples of com.caucho.env.dbpool.IdlePoolSet.first()

    throws ResourceException
  {
    if (connSet instanceof IdlePoolSet) {
      IdlePoolSet idle = (IdlePoolSet) connSet;

      ManagedConnectionImpl mConn = (ManagedConnectionImpl) idle.first();

      if (mConn == null)
        return null;
     
      Credential mCredentials = mConn.getCredentials();
View Full Code Here

Examples of com.caucho.jca.pool.IdlePoolSet.first()

    throws ResourceException
  {
    if (connSet instanceof IdlePoolSet) {
      IdlePoolSet idle = (IdlePoolSet) connSet;

      ManagedConnectionImpl mConn = (ManagedConnectionImpl) idle.first();

      if (mConn == null)
  return null;
     
      Credential mCredentials = mConn.getCredentials();
View Full Code Here

Examples of com.cloud.utils.Pair.first()

        int i = 0;
        for (Object tag : tagList) {
            if (tag instanceof Pair) {
                Pair nameValuePair = (Pair) tag;
                writeNameValuePair(sb, (String) nameValuePair.first(), nameValuePair.second(), responseType, i++);
            }
        }

        if (RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
            sb.append("}");
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.ScrollableResults.first()

        }
      }
      else {
        ScrollableResults sr = q.scroll();

        if (sr.first() && sr.scroll(begin)) {
          for (int i = begin; i < end; i++) {
            PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)sr.get(0);
            list.add(PortletPreferencesHBMUtil.model(
                portletPreferencesHBM));
View Full Code Here

Examples of com.flaptor.indextank.index.scorer.CategoryMaskManager.CategoryValueInfo.first()

      }
    }
     
      for (Pair<String, CategoryValueInfo> categoryValueInfo : categoryValueInfos) {
      for (Pair<String, CategoryValueInfo> categoryValueInfo2 : categoryValueInfos) {
        if (!categoryValueInfo.first().equals(categoryValueInfo2.first())) {
          int[] bitmask = categoryValueInfo.last().getBitmask();
          int[] bitmask2 = categoryValueInfo2.last().getBitmask();
         
          for (int i = 0; i < Math.min(bitmask.length, bitmask2.length); i++) {
            assertEquals(0, (int)(bitmask[i] & bitmask2[i]))
View Full Code Here

Examples of com.github.jsonj.JsonArray.first()

        assertThat(swapLatLon(toJsonJPoint(point1)), is(array(2.0,1.0)));
    }

    public void shouldConvertLineString() {
        JsonArray ls = toJsonJLineString(lineString1);
        assertThat(ls.first().asArray(), is(toJsonJPoint(point1)));
        assertThat(ls.last().asArray(), is(toJsonJPoint(point3)));
    }

    public void shouldSwapPoints() {
        JsonArray ls = toJsonJLineString(lineString1);
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.