Examples of first()


Examples of org.jclouds.openstack.neutron.v2.domain.Routers.first()

         /*
          * Check response
          */
         assertNotNull(routers);
         assertEquals(routers.size(), 2);
         assertEquals(routers.first().get().getId(), "a9254bdb-2613-4a13-ac4c-adc581fba50d");
      } finally {
         server.shutdown();
      }
   }

View Full Code Here

Examples of org.jclouds.openstack.neutron.v2.domain.Subnets.first()

         /*
          * Check response
          */
         assertNotNull(subnets);
         assertEquals(subnets.first().get().getId(), "16dba3bc-f3fa-4775-afdc-237e12c72f6a");
      } finally {
         server.shutdown();
      }
   }

View Full Code Here

Examples of org.jdbf.engine.sql.Cursor.first()

    public static void main(String[] args) {
      try{
        SelectSample sample = new SelectSample();
        Cursor results = (Cursor)sample.selectAll("product");
        Product prod = (Product)results.first();
        String xml = prod.marshall();
        System.out.println("===== Marshall =====");
        System.out.println(xml);
        prod = (Product)Product.unmarshall(xml);
      System.out.println("===== UnMarshall =====");
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Array.first()

        // Natural spline
        CubicInterpolation f = new CubicInterpolation(
                generic_x, generic_y,
                CubicInterpolation.DerivativeApprox.Spline, false,
                CubicInterpolation.BoundaryCondition.SecondDerivative, generic_natural_y2.first(),
                CubicInterpolation.BoundaryCondition.SecondDerivative, generic_natural_y2.last());
        f.update();

        checkValues("Natural spline", f, generic_x, generic_y);
        // cached second derivative
View Full Code Here

Examples of org.jruby.RubyArray.first()

            return value.getRuntime().getNil();
        }

        RubyArray array = (RubyArray) value;

        return array.getLength() == 1 ? array.first() : array;
    }

    public static RubyArray splatValue(IRubyObject value) {
        if (value.isNil()) {
            return value.getRuntime().newArray(value);
View Full Code Here

Examples of org.jruby.RubyRange.first()

        int length = (int)getJavaArray().length().getLongValue();
        JavaClass arrayClass = JavaClass.get(context.getRuntime(), getJavaArray().getComponentType());
       
        if (arg0 instanceof RubyRange) {
            RubyRange range = (RubyRange)arg0;
            if (range.first() instanceof RubyFixnum && range.last() instanceof RubyFixnum) {
                int first = (int)((RubyFixnum)range.first()).getLongValue();
                int last = (int)((RubyFixnum)range.last()).getLongValue();
               
                first = first >= 0 ? first : length + first;
                last = last >= 0 ? last : length + last;
View Full Code Here

Examples of org.jsoup.select.Elements.first()

    }

    private void appendMacroBody(StringBuilder builder, Element element) {
        Elements bodies = element.getElementsByTag("ac:rich-text-body");
        if (!bodies.isEmpty()) {
            Element body = bodies.first();
            cleanNodes(body, "div");
            cleanNodes(body, "p");
            builder.append(body.text().replaceAll("<br/>", "\n")).append("\n");
        }
    }
View Full Code Here

Examples of org.jugile.daims.anno.Connection1N.first()

        Connection1N c = f.getAnnotation(Connection1N.class);
        if (c == null) continue;       
      }
      if (type == FldType.NN) {
        ConnectionNN c = f.getAnnotation(ConnectionNN.class);
        if (c == null || !c.first()) continue;
        //if (c == null || c.first()) continue;
      }
      if (type == FldType.COL) {
        Connection1N c = f.getAnnotation(Connection1N.class);
        ConnectionNN nn = f.getAnnotation(ConnectionNN.class);
View Full Code Here

Examples of org.jugile.daims.anno.ConnectionN1.first()

        Connection1N c = f.getAnnotation(Connection1N.class);
        if (c == null) continue;       
      }
      if (type == FldType.NN) {
        ConnectionNN c = f.getAnnotation(ConnectionNN.class);
        if (c == null || !c.first()) continue;
        //if (c == null || c.first()) continue;
      }
      if (type == FldType.COL) {
        Connection1N c = f.getAnnotation(Connection1N.class);
        ConnectionNN nn = f.getAnnotation(ConnectionNN.class);
View Full Code Here

Examples of org.jugile.daims.anno.ConnectionNN.first()

        Connection1N c = f.getAnnotation(Connection1N.class);
        if (c == null) continue;       
      }
      if (type == FldType.NN) {
        ConnectionNN c = f.getAnnotation(ConnectionNN.class);
        if (c == null || !c.first()) continue;
        //if (c == null || c.first()) continue;
      }
      if (type == FldType.COL) {
        Connection1N c = f.getAnnotation(Connection1N.class);
        ConnectionNN nn = f.getAnnotation(ConnectionNN.class);
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.