Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Collection;

import java.util.Comparator;

import java.util.SortedSet;

import java.util.concurrent.ConcurrentSkipListSet;

public class Main {

    public static <E> ConcurrentSkipListSet<E> getConcurrentSkipListSet() {
        return new ConcurrentSkipListSet<E>();
    }

    public static <E> ConcurrentSkipListSet<E> getConcurrentSkipListSet(Collection<? extends E> collection) {
        return new ConcurrentSkipListSet<E>(collection);
    }

    public static <E> ConcurrentSkipListSet<E> getConcurrentSkipListSet(Comparator<? super E> comparator) {
        return new ConcurrentSkipListSet<E>(comparator);
    }

    public static <E> ConcurrentSkipListSet<E> getConcurrentSkipListSet(SortedSet<E> set) {
        return new ConcurrentSkipListSet<E>(set);
    }
}