Examples of toSortedCollection()


Examples of com.almworks.integers.util.LongSetBuilder.toSortedCollection()

    boolean sw = forest.size() < this.size();
    LongList sortIssues = sw ? forest.getIssues() : this.getIssues();
    LongList checkIssues = sw ? this.getIssues() : forest.getIssues();
    LongSetBuilder builder = new LongSetBuilder();
    builder.addAll(sortIssues);
    LongList sorted = builder.toSortedCollection();
    int size = checkIssues.size();
    for (int i = 0; i < size; i++) {
      if (sorted.binarySearch(checkIssues.get(i)) >= 0) return false;
    }
    return true;
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.