request 類
這個類中一共做了四件事
第一件事 設定記憶體快取是否可用
這裡記憶體實際只是乙個開關設定實際實在requestservice中 定了了執行緒池來請求 載入 儲存 讀取資料/**
* set whether the data returned from the must be cached in memory or
* not.
** @param enabled whether the data returned from the must be cached in
* memory or not.
*/public void setmemorycacheenabled(boolean enabled)
第二件事 在每一次初始化中把資料名稱和資料型別存起來(
這三個全域性變數很關鍵 request的每乙個有參構造方法 把每乙個資料型別 以鍵值對的形式 key存放在 mparamlist value存放在 mtypelist中 再mbundle中存乙份 )
private final arraylistmparamlist = new arraylist();
private final arraylistmtypelist = new arraylist();
private bundle mbundle = new bundle();
/**
* add a charsequence parameter to the request, replacing any existing value for the given name.
** @param name the parameter name.
* @param value the parameter value.
* @return this requestdata.
*/public request put(string name, charsequence value)
第三件事:把之前存進去的資料原封不動的取出來
/**
* type exists for the given name.
** @param name the parameter name.
* @return a short value.
*/public short getshort(string name)
第四件事 刪除存在的名稱的value
private void removefromrequestdata(string name)
}
至此 可以看出request只乙個bean類 只乙個中間暫時儲存資料的類 沒啥特別的
最大流(剛開始接觸的總結)
總結最大流問題 容量,流量 兩個引數數字,前面cij容量,fij流量。最大流可以從起點看,也可以從終點看,就是說流進去的和流出的是相等的。求網路的最大流 就是找增廣鏈 增光路 判斷出去的是否是非飽和的邊,出發的邊是否為非飽和的邊,即流量和不相等。當遇到飽和邊的時候,要判斷流進 非零 的邊。總的要求就...
剛開始接觸ios命令的一點總結
php開發小菜鳥一枚,剛剛開始接觸ios,準備每日總結一下小知識 學習linux之前有人推薦先從vim學起,但是vim太多可以用來長久學習,先把平時經常用的命令記住就足夠開發,一位前輩指點可以先看一本linux的入門書籍 1.linux命令 1 pwd 檢視當前目錄 2 許可權 用第一行舉例 drw...
誰剛開始學習 資料
乙個,你能理解 1.整店 儲存資料,儲存二進位制的基本需求,只知道的原 的正數。抗補碼是相同的,它是符號位0。原碼符號位為負1,其餘的是乙個數值對值,反碼符號位為1,其餘各位對原碼取反。補碼為反碼加1.2.實型資料儲存 不做介紹 3字元型儲存 每乙個字元佔乙個位元組。儲存它的ascii碼。如 a 為...