Example usage for java.util.concurrent ConcurrentSkipListSet ConcurrentSkipListSet

List of usage examples for java.util.concurrent ConcurrentSkipListSet ConcurrentSkipListSet

Introduction

In this page you can find the example usage for java.util.concurrent ConcurrentSkipListSet ConcurrentSkipListSet.

Prototype

ConcurrentSkipListSet(ConcurrentNavigableMap<E, Object> m) 

Source Link

Document

For use by submaps

Usage

From source file:org.openstreetmap.josm.plugins.mapillary.oauth.UploadUtils.java

/**
 * Uploads the given {@link MapillarySequence}.
 *
 * @param sequence The sequence to upload. It must contain only
 *                 {@link MapillaryImportedImage} objects.
 * @param delete   Whether the images must be deleted after upload or not.
 *//* w ww.j  a va2 s.  c o m*/
public static void uploadSequence(MapillarySequence sequence, boolean delete) {
    Main.worker.submit(new SequenceUploadThread(new ConcurrentSkipListSet<>(sequence.getImages()), delete));
}

From source file:com.houghtonassociates.bamboo.plugins.dao.GerritService.java

public Set<GerritChangeVO> getLastUnverifiedChanges() throws RepositoryException {
    log.debug("getLastUnverifiedChange()...");

    Set<GerritChangeVO> changes = getGerritChangeInfo();

    ConcurrentSkipListSet<GerritChangeVO> filtedChanges = new ConcurrentSkipListSet<GerritChangeVO>(
            new SortByUnVerifiedLastUpdate());
    filtedChanges.addAll(changes);/* w w  w  . j a v  a2s  .  c  o  m*/

    if ((filtedChanges.size() > 0)) {
        for (GerritChangeVO c : filtedChanges) {
            if (c.getVerificationScore() > 0) {
                filtedChanges.remove(c);
            }
        }
    }

    return filtedChanges;
}