Code example for PersistentMap

0
		return Map.class; 
	} 
 
	public Iterator getElementsIterator(Object collection) { 
		return ( (java.util.Map) collection ).values().iterator(); 
	} 
 
	public PersistentCollection wrap(SessionImplementor session, Object collection) { 
		return new PersistentMap( session, (java.util.Map) collection ); 
	} 
	 
	public Object instantiate(int anticipatedSize) { 
		return anticipatedSize <= 0  
		       ? new HashMap() 
		       : new HashMap( anticipatedSize + (int)( anticipatedSize * .75f ), .75f ); 
	} 
 
	public Object replaceElements( 
		final Object original, 
		final Object target, 
Experience pair programming with AI  Get Codota for Java