class ObjectSet implements CloseableIterable<O>, Closeable {

    public static <O> ObjectSet<O> fromCollection(final Collection<O> collection) {
        return new CollectionAsObjectSet<O>(collection);
    }

}