public Cache(){
  pages=Collections.synchronizedMap(new HashMap<Integer,SoftReference>());
}

public Cache ( ) { pages = Collections . synchronizedMap ( new HashMap < Integer , SoftReference > ( ) ) ; }
creates a new instance of a cache
