#ifndef __X10_UTIL_HASHMAP__ENTRYSET_H
#define __X10_UTIL_HASHMAP__ENTRYSET_H

#include <x10rt.h>


#define X10_UTIL_ABSTRACTCOLLECTION_H_NODEPS
#include <x10/util/AbstractCollection.h>
#undef X10_UTIL_ABSTRACTCOLLECTION_H_NODEPS
namespace x10 { namespace util { 
template<class TPMGL(Key), class TPMGL(Val)> class Map__Entry;
} } 
#define X10_UTIL_SET_H_NODEPS
#include <x10/util/Set.h>
#undef X10_UTIL_SET_H_NODEPS
namespace x10 { namespace util { 
template<class TPMGL(K), class TPMGL(V)> class HashMap;
} } 
namespace x10 { namespace lang { 
template<class TPMGL(T)> class Iterator;
} } 
namespace x10 { namespace util { 
template<class TPMGL(S), class TPMGL(T)> class MapIterator;
} } 
namespace x10 { namespace util { 
template<class TPMGL(Key), class TPMGL(Value)> class HashMap__HashEntry;
} } 
namespace x10 { namespace lang { 
template<class TPMGL(Z1), class TPMGL(U)> class Fun_0_1;
} } 
namespace x10 { namespace lang { 
class Boolean;
} } 
namespace x10 { namespace lang { 
class UnsupportedOperationException;
} } 
namespace x10 { namespace lang { 
class Int;
} } 
namespace x10 { namespace util { 

template<class TPMGL(Key), class TPMGL(Value)> class HashMap__EntrySet;
template <> class HashMap__EntrySet<void, void>;
template<class TPMGL(Key), class TPMGL(Value)> class HashMap__EntrySet : public x10::util::AbstractCollection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >
  {
    public:
    RTT_H_DECLS_CLASS
    
    static x10aux::itable_entry _itables[6];
    
    virtual x10aux::itable_entry* _getITables() { return _itables; }
    
    static typename x10::util::Container<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _itable_0;
    
    static x10::lang::Any::itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _itable_1;
    
    static typename x10::lang::Iterable<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _itable_2;
    
    static typename x10::util::Collection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _itable_3;
    
    static typename x10::util::Set<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _itable_4;
    
    x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > FMGL(map);
    
    void _constructor(x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > map);
    
    static x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > _make(
             x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > map);
    
    virtual x10aux::ref<x10::lang::Iterator<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >
      iterator();
    virtual x10_boolean contains(x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k);
    virtual x10_boolean add(x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k);
    virtual x10_boolean remove(x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k);
    virtual x10aux::ref<x10::util::Container<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >
      clone();
    virtual x10_int size();
    virtual x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >
      x10__util__HashMap__EntrySet____x10__util__HashMap__EntrySet__this(
      );
    
    // Serialization
    public: static const x10aux::serialization_id_t _serialization_id;
    
    public: virtual x10aux::serialization_id_t _get_serialization_id() {
         return _serialization_id;
    }
    
    public: virtual void _serialize_body(x10aux::serialization_buffer& buf);
    
    public: static x10aux::ref<x10::lang::Reference> _deserializer(x10aux::deserialization_buffer& buf);
    
    public: void _deserialize_body(x10aux::deserialization_buffer& buf);
    
};
template <> class HashMap__EntrySet<void, void> : public x10::util::AbstractCollection<void>
{
    public:
    static x10aux::RuntimeType rtt;
    static const x10aux::RuntimeType* getRTT() { return & rtt; }
    
};

} } 
#endif // X10_UTIL_HASHMAP__ENTRYSET_H

namespace x10 { namespace util { 
template<class TPMGL(Key), class TPMGL(Value)> class HashMap__EntrySet;
} } 

#ifndef X10_UTIL_HASHMAP__ENTRYSET_H_NODEPS
#define X10_UTIL_HASHMAP__ENTRYSET_H_NODEPS
#include <x10/util/AbstractCollection.h>
#include <x10/util/Map__Entry.h>
#include <x10/util/Set.h>
#include <x10/util/HashMap.h>
#include <x10/lang/Iterator.h>
#include <x10/util/MapIterator.h>
#include <x10/util/HashMap__HashEntry.h>
#include <x10/lang/Fun_0_1.h>
#include <x10/lang/Boolean.h>
#include <x10/lang/UnsupportedOperationException.h>
#include <x10/lang/Int.h>
#ifndef X10_UTIL_HASHMAP__ENTRYSET_H_GENERICS
#define X10_UTIL_HASHMAP__ENTRYSET_H_GENERICS
#endif // X10_UTIL_HASHMAP__ENTRYSET_H_GENERICS
#ifndef X10_UTIL_HASHMAP__ENTRYSET_H_IMPLEMENTATION
#define X10_UTIL_HASHMAP__ENTRYSET_H_IMPLEMENTATION
#include <x10/util/HashMap__EntrySet.h>

#ifndef X10_UTIL_HASHMAP__ENTRYSET__CLOSURE__2_CLOSURE
#define X10_UTIL_HASHMAP__ENTRYSET__CLOSURE__2_CLOSURE
#include <x10/lang/Closure.h>
#include <x10/lang/Fun_0_1.h>
template<class TPMGL(Key), class TPMGL(Value)> class x10_util_HashMap__EntrySet__closure__2 : public x10::lang::Closure {
    public:
    
    static typename x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable <x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > > _itable;
    static x10aux::itable_entry _itables[2];
    
    virtual x10aux::itable_entry* _getITables() { return _itables; }
    
    // closure body
    x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > __apply(x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> > e) {
        
        //#line 292 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10Return_c
        return e;
        
    }
    
    // captured environment
    
    x10aux::serialization_id_t _get_serialization_id() {
        return _serialization_id;
    }
    
    void _serialize_body(x10aux::serialization_buffer &buf) {
        
    }
    
    template<class __T> static x10aux::ref<__T> _deserialize(x10aux::deserialization_buffer &buf) {
        x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >* storage = x10aux::alloc<x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > >();
        buf.record_reference(x10aux::ref<x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > >(storage));
        x10aux::ref<x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > > this_ = new (storage) x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >();
        return this_;
    }
    
    x10_util_HashMap__EntrySet__closure__2() { }
    
    static const x10aux::serialization_id_t _serialization_id;
    
    static const x10aux::RuntimeType* getRTT() { return x10aux::getRTT<x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >(); }
    virtual const x10aux::RuntimeType *_type() const { return x10aux::getRTT<x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >(); }
    
    x10aux::ref<x10::lang::String> toString() {
        return x10aux::string_utils::lit(this->toNativeString());
    }
    
    const char* toNativeString() {
        return "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10:292";
    }

};

template<class TPMGL(Key), class TPMGL(Value)> typename x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable <x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > >x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::_itable(&x10::lang::Reference::equals, &x10::lang::Closure::hashCode, &x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::__apply, &x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::toString, &x10::lang::Closure::typeName);
template<class TPMGL(Key), class TPMGL(Value)> x10aux::itable_entry x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::_itables[2] = {x10aux::itable_entry(&x10aux::getRTT<x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >, &x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::_itable),x10aux::itable_entry(NULL, NULL)};

template<class TPMGL(Key), class TPMGL(Value)> const x10aux::serialization_id_t x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::_serialization_id = 
    x10aux::DeserializationDispatcher::addDeserializer(x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) >::template _deserialize<x10::lang::Reference>,x10aux::CLOSURE_KIND_NOT_ASYNC);

#endif // X10_UTIL_HASHMAP__ENTRYSET__CLOSURE__2_CLOSURE
template<class TPMGL(Key), class TPMGL(Value)> typename x10::util::Container<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itable_0(&x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clone, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::contains, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::containsAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::equals, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::hashCode, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::isEmpty, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::iterator, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::size, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::toString, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::typeName);
template<class TPMGL(Key), class TPMGL(Value)> x10::lang::Any::itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itable_1(&x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::equals, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::hashCode, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::toString, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::typeName);
template<class TPMGL(Key), class TPMGL(Value)> typename x10::lang::Iterable<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itable_2(&x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::equals, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::hashCode, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::iterator, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::toString, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::typeName);
template<class TPMGL(Key), class TPMGL(Value)> typename x10::util::Collection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itable_3(&x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::add, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::addAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::addAllWhere, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clear, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clone, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::contains, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::containsAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::equals, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::hashCode, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::isEmpty, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::iterator, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::remove, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::removeAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::removeAllWhere, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::retainAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::size, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::toString, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::typeName);
template<class TPMGL(Key), class TPMGL(Value)> typename x10::util::Set<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::template itable<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itable_4(&x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::add, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::addAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::addAllWhere, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clear, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clone, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::contains, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::containsAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::equals, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::hashCode, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::isEmpty, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::iterator, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::remove, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::removeAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::removeAllWhere, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::retainAll, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::size, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::toString, &x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::typeName);
template<class TPMGL(Key), class TPMGL(Value)> x10aux::itable_entry x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_itables[6] = {x10aux::itable_entry(&x10aux::getRTT<x10::util::Container<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >, &_itable_0), x10aux::itable_entry(&x10aux::getRTT<x10::lang::Any>, &_itable_1), x10aux::itable_entry(&x10aux::getRTT<x10::lang::Iterable<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >, &_itable_2), x10aux::itable_entry(&x10aux::getRTT<x10::util::Collection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >, &_itable_3), x10aux::itable_entry(&x10aux::getRTT<x10::util::Set<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >, &_itable_4), x10aux::itable_entry(NULL, (void*)x10aux::getRTT<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >())};

//#line 286 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10FieldDecl_c

//#line 288 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10ConstructorDecl_c
template<class TPMGL(Key), class TPMGL(Value)> void x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_constructor(
                                                 x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > map) {
    
    //#line 288 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10ConstructorCall_c
    (this)->::x10::util::AbstractCollection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::_constructor();
    
    //#line 288 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.AssignPropertyCall_c
    
    //#line 288 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": Eval of x10.ast.X10FieldAssign_c
    ((x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >)this)->
      FMGL(map) = map;
}
template<class TPMGL(Key), class TPMGL(Value)> x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_make(
                                                 x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > map)
{
    x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > this_ = new (memset(x10aux::alloc<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >(), 0, sizeof(x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>))) x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>();
    this_->_constructor(map);
    return this_;
}



//#line 290 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10aux::ref<x10::lang::Iterator<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::iterator(
  ) {
    
    //#line 291 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10Return_c
    return x10::util::MapIterator<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::_make(x10aux::nullCheck(((x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >)this)->
                                                                                                                                                                                                    FMGL(map))->entriesIterator(),
                                                                                                                                                                                x10aux::ref<x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >(x10aux::ref<x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value) > >(new (x10aux::alloc<x10::lang::Fun_0_1<x10aux::ref<x10::util::HashMap__HashEntry<TPMGL(Key), TPMGL(Value)> >, x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >(sizeof(x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value)>)))x10_util_HashMap__EntrySet__closure__2<TPMGL(Key),TPMGL(Value)>())));
    
}

//#line 295 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10_boolean
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::contains(
  x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k) {
    
    //#line 295 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": polyglot.ast.Throw_c
    x10aux::throwException(x10aux::nullCheck(x10::lang::UnsupportedOperationException::_make()));
}

//#line 296 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10_boolean
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::add(
  x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k) {
    
    //#line 296 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": polyglot.ast.Throw_c
    x10aux::throwException(x10aux::nullCheck(x10::lang::UnsupportedOperationException::_make()));
}

//#line 297 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10_boolean
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::remove(
  x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > k) {
    
    //#line 297 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": polyglot.ast.Throw_c
    x10aux::throwException(x10aux::nullCheck(x10::lang::UnsupportedOperationException::_make()));
}

//#line 298 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10aux::ref<x10::util::Container<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::clone(
  ) {
    
    //#line 298 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": polyglot.ast.Throw_c
    x10aux::throwException(x10aux::nullCheck(x10::lang::UnsupportedOperationException::_make()));
}

//#line 299 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10_int x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::size(
  ) {
    
    //#line 299 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10Return_c
    return x10aux::nullCheck(((x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >)this)->
                               FMGL(map))->size();
    
}

//#line 283 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10MethodDecl_c
template<class TPMGL(Key), class TPMGL(Value)> x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >
  x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::x10__util__HashMap__EntrySet____x10__util__HashMap__EntrySet__this(
  ) {
    
    //#line 283 "/wrkdirs/usr/ports/lang/x10/work/x10.runtime/src-x10/x10/util/HashMap.x10": x10.ast.X10Return_c
    return ((x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >)this);
    
}
template<class TPMGL(Key), class TPMGL(Value)> const x10aux::serialization_id_t x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_serialization_id = 
    x10aux::DeserializationDispatcher::addDeserializer(x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_deserializer, x10aux::CLOSURE_KIND_NOT_ASYNC);

template<class TPMGL(Key), class TPMGL(Value)> void x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_serialize_body(x10aux::serialization_buffer& buf) {
    x10::util::AbstractCollection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::_serialize_body(buf);
    buf.write(this->FMGL(map));
    
}

template<class TPMGL(Key), class TPMGL(Value)> x10aux::ref<x10::lang::Reference> x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_deserializer(x10aux::deserialization_buffer& buf) {
    x10aux::ref<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> > this_ = new (memset(x10aux::alloc<x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)> >(), 0, sizeof(x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>))) x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>();
    buf.record_reference(this_);
    this_->_deserialize_body(buf);
    return this_;
}

template<class TPMGL(Key), class TPMGL(Value)> void x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_deserialize_body(x10aux::deserialization_buffer& buf) {
    x10::util::AbstractCollection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > >::_deserialize_body(buf);
    FMGL(map) = buf.read<x10aux::ref<x10::util::HashMap<TPMGL(Key), TPMGL(Value)> > >();
}

template<class TPMGL(Key), class TPMGL(Value)> x10aux::RuntimeType x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::rtt;
template<class TPMGL(Key), class TPMGL(Value)> void x10::util::HashMap__EntrySet<TPMGL(Key), TPMGL(Value)>::_initRTT() {
    const x10aux::RuntimeType *canonical = x10aux::getRTT<x10::util::HashMap__EntrySet<void, void> >();
    if (rtt.initStageOne(canonical)) return;
    const x10aux::RuntimeType* parents[2] = { x10aux::getRTT<x10::util::AbstractCollection<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >(), x10aux::getRTT<x10::util::Set<x10aux::ref<x10::util::Map__Entry<TPMGL(Key), TPMGL(Value)> > > >()};
    const x10aux::RuntimeType* params[2] = { x10aux::getRTT<TPMGL(Key)>(), x10aux::getRTT<TPMGL(Value)>()};
    x10aux::RuntimeType::Variance variances[2] = { x10aux::RuntimeType::invariant, x10aux::RuntimeType::invariant};
    const char *baseName = "x10.util.HashMap.EntrySet";
    rtt.initStageTwo(baseName, x10aux::RuntimeType::class_kind, 2, parents, 2, params, variances);
}
#endif // X10_UTIL_HASHMAP__ENTRYSET_H_IMPLEMENTATION
#endif // __X10_UTIL_HASHMAP__ENTRYSET_H_NODEPS
