Example usage for com.google.common.collect Sets synchronizedNavigableSet

List of usage examples for com.google.common.collect Sets synchronizedNavigableSet

Introduction

In this page you can find the example usage for com.google.common.collect Sets synchronizedNavigableSet.

Prototype

@GwtIncompatible("NavigableSet")
public static <E> NavigableSet<E> synchronizedNavigableSet(NavigableSet<E> navigableSet) 

Source Link

Document

Returns a synchronized (thread-safe) navigable set backed by the specified navigable set.

Usage

From source file:org.dllearner.utilities.datastructures.SynchronizedSearchTree.java

public SynchronizedSearchTree(Comparator<T> comparator) {
    super(comparator);
    nodes = Sets.synchronizedNavigableSet(new TreeSet<>(sortOrderComp));
}