VCollections.src.org.violetlib.collections.impl.EmptyMap 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.violetlib.collections.Binding;
import org.violetlib.collections.IIterator;
import org.violetlib.collections.IMap;
import org.violetlib.collections.ISet;
import org.violetlib.util.Extensions;
import org.jetbrains.annotations.*;
import org.violetlib.annotations.Immutable;
/**
A map containing no bindings.
*/
public final @Immutable class EmptyMap
implements IMap
{
public static @NotNull IMap get()
{
return (IMap) INSTANCE;
}
private static final @NotNull EmptyMap