congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CaptureSearchResult.setNextResult
Code IndexAdd Tabnine to your IDE (free)

How to use
setNextResult
method
in
org.archive.wayback.core.CaptureSearchResult

Best Java code snippets using org.archive.wayback.core.CaptureSearchResult.setNextResult (Showing top 5 results out of 315)

origin: org.netpreserve.openwayback/openwayback-core

public void removeFromList() {
  if (nextResult != null) {
    nextResult.setPrevResult(prevResult);
  }
  if (prevResult != null) {
    prevResult.setNextResult(nextResult);
  }
  prevResult = null;
  nextResult = null;
}
origin: iipc/openwayback

public void removeFromList() {
  if (nextResult != null) {
    nextResult.setPrevResult(prevResult);
  }
  if (prevResult != null) {
    prevResult.setNextResult(nextResult);
  }
  prevResult = null;
  nextResult = null;
}
origin: iipc/openwayback

/**
 * Add a result to this results, at either the beginning or the end,
 * depending on the append argument
 * @param result SearchResult to add to this set
 * @param append
 */
public void addSearchResult(CaptureSearchResult result, boolean append) {
  String resultDate = result.getCaptureTimestamp();
  if ((firstResultTimestamp == null) ||
      (firstResultTimestamp.compareTo(resultDate) > 0)) {
    firstResultTimestamp = resultDate;
  }
  if ((lastResultTimestamp == null) ||
      (lastResultTimestamp.compareTo(resultDate) < 0)) {
    lastResultTimestamp = resultDate;
  }
  if (append) {
    if (!results.isEmpty()) {
      results.getLast().setNextResult(result);
      result.setPrevResult(results.getLast());
    }
    results.add(result);
  } else {
    if (!results.isEmpty()) {
      results.getFirst().setPrevResult(result);
      result.setNextResult(results.getFirst());
    }
    results.add(0, result);
  }
}
origin: org.netpreserve.openwayback/openwayback-core

/**
 * Add a result to this results, at either the beginning or the end,
 * depending on the append argument
 * @param result SearchResult to add to this set
 * @param append
 */
public void addSearchResult(CaptureSearchResult result, boolean append) {
  String resultDate = result.getCaptureTimestamp();
  if ((firstResultTimestamp == null) ||
      (firstResultTimestamp.compareTo(resultDate) > 0)) {
    firstResultTimestamp = resultDate;
  }
  if ((lastResultTimestamp == null) ||
      (lastResultTimestamp.compareTo(resultDate) < 0)) {
    lastResultTimestamp = resultDate;
  }
  if (append) {
    if (!results.isEmpty()) {
      results.getLast().setNextResult(result);
      result.setPrevResult(results.getLast());
    }
    results.add(result);
  } else {
    if (!results.isEmpty()) {
      results.getFirst().setPrevResult(result);
      result.setNextResult(results.getFirst());
    }
    results.add(0, result);
  }
}
origin: iipc/openwayback

CaptureSearchResult result = new FastCaptureSearchResult();
if (prev != null) {
  prev.setNextResult(result);
  result.setPrevResult(prev);
org.archive.wayback.coreCaptureSearchResultsetNextResult

Popular methods of CaptureSearchResult

  • <init>
  • setUrlKey
  • getOriginalUrl
  • setFile
  • setHttpCode
  • setMimeType
  • setOffset
  • setOriginalUrl
  • flagDuplicateDigest
    Mark this capture as a revisit of previous capture payload, identified by content digest.Record loca
  • getCaptureDate
  • getCaptureTimestamp
  • getDigest
  • getCaptureTimestamp,
  • getDigest,
  • getDuplicatePayload,
  • getDuplicatePayloadCompressedLength,
  • getDuplicatePayloadFile,
  • getDuplicatePayloadOffset,
  • getFile,
  • getOffset,
  • getRobotFlags,
  • getUrlKey

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now