Package com.lastcalc.db

Examples of com.lastcalc.db.Line


            final TreeMap<Integer, String> orderedQuestions = Maps.newTreeMap();
            orderedQuestions.putAll(request.questions);
            for (final Entry<Integer, String> question : orderedQuestions.entrySet()) {
                final int pos = question.getKey() - 1;
                if (pos < qaPairs.size()) {
                    final Line qaPair = qaPairs.get(pos);
                    qaPair.lineNum=question.getKey();
                    qaPair.question = question.getValue();
                    //earliestModified = Math.min(earliestModified, pos);
                } else {
                    qaPairs.add(new Line(question.getKey(),question.getValue(), null));
                }
            }
            for (int x = 0; x < qaPairs.size(); x++) {
                final Line qaPair = qaPairs.get(x);
                qaPair.answer = null;
            }
            // Remove any qaPairs that have been removed from the browser DOM
            if (!orderedQuestions.isEmpty()) {
                while (qaPairs.size() > orderedQuestions.lastKey()) {
View Full Code Here


      final TreeMap<Integer, String> orderedQuestions = Maps.newTreeMap();
      orderedQuestions.putAll(request.questions);
      for (final Entry<Integer, String> e : orderedQuestions.entrySet()) {
        final int pos = e.getKey() - 1;
        if (pos < qaPairs.size()) {
          final Line qaPair = qaPairs.get(pos);
          qaPair.question = e.getValue();
          earliestModified = Math.min(earliestModified, pos);
        } else {
          qaPairs.add(new Line(e.getValue(), null));
        }
      }
      for (int x = earliestModified; x < qaPairs.size(); x++) {
        final Line qaPair = qaPairs.get(x);
        qaPair.answer = null;
      }
      // Remove any qaPairs that have been removed from the browser DOM
      if (!orderedQuestions.isEmpty()) {
        while (qaPairs.size() > orderedQuestions.lastKey()) {
View Full Code Here

TOP

Related Classes of com.lastcalc.db.Line

Copyright © 2018 www.massapicom. 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.