private void trimSize(){
  int count=mCookieEntityDao.count();
  if (count > MAX_COOKIE_SIZE + 10) {
    List<CookieEntity> rmList=mCookieEntityDao.getList(null,null,Integer.toString(count - MAX_COOKIE_SIZE),null);
    if (rmList != null)     mCookieEntityDao.delete(rmList);
  }
}

private void trimSize ( ) { int count = mCookieEntityDao . count ( ) ; if ( count > MAX_COOKIE_SIZE + 10 ) { List < CookieEntity > rmList = mCookieEntityDao . getList ( null , null , Integer . toString ( count - MAX_COOKIE_SIZE ) , null ) ; if ( rmList != null ) mCookieEntityDao . delete ( rmList ) ; } }
trim the cookie list .
