VCollections.src.org.violetlib.collections.impl.SimpleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcollections Show documentation
Show all versions of vcollections Show documentation
Java Immutable Collections
The newest version!
/*
* Copyright (c) 2023 Alan Snyder.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the license agreement. For details see
* accompanying license terms.
*/
package org.violetlib.collections.impl;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.violetlib.annotations.Immutable;
import org.violetlib.collections.*;
import org.violetlib.util.Extensions;
import java.util.*;
import java.util.function.Function;
import static java.util.Spliterator.*;
/**
*/
public final @Immutable class SimpleSet
implements ISet
{
@SuppressWarnings("unchecked")
public static @NotNull SimpleSet empty()
{
return (SimpleSet) EMPTY;
}
private static final SimpleSet