All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.reflect.EmptyBindings Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.lang.reflect;

import javax.script.Bindings;
import java.util.Collection;
import java.util.Map;
import java.util.Set;

/**
 */
public class EmptyBindings implements Bindings
{
  private static final Bindings INSTANCE = new EmptyBindings();

  public static Bindings instance() {
    return INSTANCE;
  }

  private EmptyBindings()
  {
  }

  @Override
  public Object put( String name, Object value )
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public void putAll( Map toMerge )
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public void clear()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public Set keySet()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public Collection values()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public Set> entrySet()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public int size()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean isEmpty()
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean containsKey( Object key )
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean containsValue( Object value )
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public Object get( Object key )
  {
    throw new UnsupportedOperationException();
  }

  @Override
  public Object remove( Object key )
  {
    throw new UnsupportedOperationException();
  }
}