Code example for NoSuchElementException

0
                    public boolean hasNext() { 
                        return false; 
                    } 
 
                    public Map.Entry<String, Object> next() {
                        throw new NoSuchElementException();
                    } 
 
                    public void remove() { 
                        throw new UnsupportedOperationException();
                    } 
                }; 
            } 
 
            public boolean add(Map.Entry<String, Object> e) {
                IBindings.this.put(e.getKey(), e.getValue());
                return true; 
            } 
        }; 
    } 
}