Examples of last()


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

        // 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
        for (int i=0; i<n; i++) {
View Full Code Here

Examples of org.jruby.RubyRange.last()

        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.jruby.RubyRange.last()

       
        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;
                int newLength = last - first;
                if (range.exclude_end_p().isFalse()) newLength += 1;
View Full Code Here

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

  private Account addAccountDetails(Account pAccount, Document pDocument) {
    Elements vAccountDetails = pDocument
        .select("strong:contains(Saldo och transaktioner) ~ table")
        .first().select("tr td:last-child");
    String vAccountType = vAccountDetails.first().text();
    String vBalance = vAccountDetails.last().text();
    pAccount.setName(vAccountType);
    pAccount.setCurrency(Currency.getInstance("SEK"));
    BigDecimal balance = new BigDecimal(vBalance.replaceAll("[^\\d]", ""));
    pAccount.setBalance(balance);
    pAccount.setAvailable(balance);
View Full Code Here

Examples of org.ofbiz.entity.util.EntityListIterator.last()

        if ((pwdHist = eli.next()) != null) {
            // updating password so set end date on previous password in history
            pwdHist.set("thruDate", nowTimestamp);
            pwdHist.store();
            // check if we have hit the limit on number of password changes to be saved. If we did then delete the oldest password from history.
            eli.last();
            int rowIndex = eli.currentIndex();
            if (rowIndex==passwordChangeHistoryLimit) {
                eli.afterLast();
                pwdHist = eli.previous();
                pwdHist.remove();
View Full Code Here

Examples of org.suigeneris.jrcs.diff.delta.Chunk.last()

                    // No need to skip anything, just output the whole range...
                    for (int j = m_firstElem; j < orig.first(); j++)
                    m_sb.append( m_origStrings[j] );
                }
            }
            m_firstElem = orig.last() + 1;
        }

        public void visit( Revision rev )
        {
            // GNDN (Goes nowhere, does nothing)
View Full Code Here

Examples of org.tmatesoft.hg.internal.IntSliceSeq.last()

    }
    s1.add(21,22,23);
    errorCollector.assertEquals(2, s1.size());
    s1.add(7, 8, 9);
    s1.set(1, 4, 5, 6);
    IntTuple l = s1.last();
    errorCollector.assertEquals(7, l.at(0));
    errorCollector.assertEquals(8, l.at(1));
    errorCollector.assertEquals(9, l.at(2));
    int v = 1, slice = 0;
    for (IntTuple t : s1) {
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.table.ISqlJetBtreeDataTable.last()

     * @throws SqlJetException
     */
    private String getRandomHash(final ISqlJetSchema schema) throws SqlJetException {
        final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, false);
        try {
            data.last();
            long lastKey = data.getRowId();
            if (lastKey <= 0)
                return null;
            Random random = new Random();
            final int key = random.nextInt((int) lastKey);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable.last()

     * @throws SqlJetException
     */
    private String getRandomHash(final ISqlJetSchema schema) throws SqlJetException {
        final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, false);
        try {
            data.last();
            long lastKey = data.getRowId();
            if (lastKey <= 0)
                return null;
            Random random = new Random();
            final int key = random.nextInt((int) lastKey);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.last()

                Assert.assertTrue(cursor.getRowCount() == 3);
               
                Assert.assertTrue(cursor.first());
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertTrue(cursor.last());
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
               
                cursor.close();
                return null;
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.