锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av无码天堂一区二区三区 ,亚洲av高清在线观看一区二区,亚洲色成人四虎在线观看http://www.tkk7.com/cherishchen/category/24321.htmlThe art of living is to know when to hold fast and when to let gozh-cnFri, 24 Aug 2007 02:30:49 GMTFri, 24 Aug 2007 02:30:49 GMT60涔熸潵鍐欎釜struts2 CURD鐨勪緥瀛?Move CRUD Operations into the same Actionhttp://www.tkk7.com/cherishchen/archive/2007/08/23/138760.html鍑爮瑙傛搗鍑爮瑙傛搗Thu, 23 Aug 2007 03:02:00 GMThttp://www.tkk7.com/cherishchen/archive/2007/08/23/138760.htmlhttp://www.tkk7.com/cherishchen/comments/138760.htmlhttp://www.tkk7.com/cherishchen/archive/2007/08/23/138760.html#Feedback0http://www.tkk7.com/cherishchen/comments/commentRss/138760.htmlhttp://www.tkk7.com/cherishchen/services/trackbacks/138760.html闃呰鍏ㄦ枃

鍑爮瑙傛搗 2007-08-23 11:02 鍙戣〃璇勮
]]>
java鐨勬暟鎹被鍨嬶紙澶囩敤錛?/title><link>http://www.tkk7.com/cherishchen/archive/2007/07/27/132720.html</link><dc:creator>鍑爮瑙傛搗</dc:creator><author>鍑爮瑙傛搗</author><pubDate>Fri, 27 Jul 2007 03:11:00 GMT</pubDate><guid>http://www.tkk7.com/cherishchen/archive/2007/07/27/132720.html</guid><wfw:comment>http://www.tkk7.com/cherishchen/comments/132720.html</wfw:comment><comments>http://www.tkk7.com/cherishchen/archive/2007/07/27/132720.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cherishchen/comments/commentRss/132720.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cherishchen/services/trackbacks/132720.html</trackback:ping><description><![CDATA[  緇撳悎浜嗗墠孌墊椂闂寸湅unicode鐨勭煡璇嗚ˉ琛ュ熀紜<br><br> <ul> <li><strong>byte</strong>: The <code>byte</code> data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The <code>byte</code> data type can be useful for saving memory in large <a >arrays</a>, where the memory savings actually matters. They can also be used in place of <code>int</code> where their limits help to clarify your code; the fact that a variable's range is limited can serve as a form of documentation. </li> <li><strong>short</strong>: The <code>short</code> data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive). As with <code>byte</code>, the same guidelines apply: you can use a <code>short</code> to save memory in large arrays, in situations where the memory savings actually matters. </li> <li><strong>int</strong>: The <code>int</code> data type is a 32-bit signed two's complement integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647 (inclusive). For integral values, this data type is generally the default choice unless there is a reason (like the above) to choose something else. This data type will most likely be large enough for the numbers your program will use, but if you need a wider range of values, use <code>long</code> instead. </li> <li><strong>long</strong>: The <code>long</code> data type is a 64-bit signed two's complement integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive). Use this data type when you need a range of values wider than those provided by <code>int</code>. </li> <li><strong>float</strong>: The <code>float</code> data type is a single-precision 32-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in section <a >4.2.3</a> of the Java Language Specification. As with the recommendations for <code>byte</code> and <code>short</code>, use a <code>float</code> (instead of <code>double</code>) if you need to save memory in large arrays of floating point numbers. This data type should never be used for precise values, such as currency. For that, you will need to use the <a >java.math.BigDecimal</a> class instead. <a >Numbers and Strings</a> covers <code>BigDecimal</code> and other useful classes provided by the Java platform. </li> <li><strong>double</strong>: The <code>double</code> data type is a double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in section <a >4.2.3</a> of the Java Language Specification. For decimal values, this data type is generally the default choice. As mentioned above, this data type should never be used for precise values, such as currency. </li> <li><strong>boolean</strong>: The <code>boolean</code> data type has only two possible values: <code>true</code> and <code>false</code>. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined. </li> <li><strong>char</strong>: The <code>char</code> data type is a single 16-bit Unicode character. It has a minimum value of <code>'\u0000'</code> (or 0) and a maximum value of <code>'\uffff'</code> (or 65,535 inclusive). </li> </ul> <p> </p> <table unselectable="on" border="0" cellpadding="2" cellspacing="0" width="828"> <tbody> <tr> <td valign="top" width="173"> <p><strong>綾誨瀷鍚嶇О</strong></p> </td> <td valign="top" width="177"><strong>綾誨瀷瀹氫箟</strong></td> <td valign="top" width="474"><strong>綾誨瀷鍙栧?/strong></td> </tr> <tr> <td valign="top" width="173"><em>boolean</em></td> <td valign="top" width="177">甯冨皵鍊?/td> <td valign="top" width="473"><em>true</em>, <em>false</em></td> </tr> <tr> <td valign="top" width="173"><em>byte</em></td> <td valign="top" width="177">8浣?strong>鏈夌鍙鋒暣鏁?/strong></td> <td valign="top" width="473">鏈灝忓?128錛屾渶澶у?27</td> </tr> <tr> <td valign="top" width="173"><em>short</em></td> <td valign="top" width="177">16浣?strong>鏈夌鍙鋒暣鏁?/strong></td> <td valign="top" width="472"> <p>鏈灝忓?32768錛?2<sup>15</sup>錛夛紝鏈澶у?2767錛?<sup>15</sup>-1錛?/p> </td> </tr> <tr> <td valign="top" width="173"><em>int</em></td> <td valign="top" width="177">32浣?strong>鏈夌鍙鋒暣鏁?/strong></td> <td valign="top" width="472">鏈灝忓?2147483648錛?2<sup>31</sup>錛夛紝鏈澶у?147483647錛?<sup>31</sup>-1錛?/td> </tr> <tr> <td valign="top" width="173"><em>long</em></td> <td valign="top" width="177">64浣?strong>鏈夌鍙鋒暣鏁?/strong></td> <td valign="top" width="472"> <p>-2<sup>63</sup>~(2<sup>63</sup>-1)</p> </td> </tr> <tr> <td valign="top" width="173"><em>float</em></td> <td valign="top" width="177">32浣嶆誕鐐規(guī)暟</td> <td valign="top" width="472"> <p>1.4E-45~3.4028235E38</p> </td> </tr> <tr> <td valign="top" width="173"><em>double</em></td> <td valign="top" width="177">64浣嶆誕鐐規(guī)暟</td> <td valign="top" width="472">4.9E-324~1.7976931348623157E308</td> </tr> <tr> <td valign="top" width="173">char</td> <td valign="top" width="177">16浣峌nicode瀛楃</td> <td valign="top" width="472"> </td> </tr> <tr> <td valign="top" width="173"> </td> <td valign="top" width="177"> </td> <td valign="top" width="472"> </td> </tr> </tbody> </table> <p> </p> <p> </p> <p> </p> <div id="l1rh7jf" class="ad_in_page"> <script type="text/javascript"><!-- google_ad_client = "pub-7843511305731432"; google_ad_width =" 468; google_ad_height" = 60; google_ad_format =" "468x60_as"; google_ad_type" = "text_image"; //2007-07-22: test google_ad_channel =" "2043099642"; google_color_border" = "ffffff"; google_color_bg =" "ffffff"; google_color_link" = "ffffff"; google_color_text =" "000000"; google_color_url" = "000033"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div><img src ="http://www.tkk7.com/cherishchen/aggbug/132720.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cherishchen/" target="_blank">鍑爮瑙傛搗</a> 2007-07-27 11:11 <a href="http://www.tkk7.com/cherishchen/archive/2007/07/27/132720.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>hibernate 浜嬪姟http://www.tkk7.com/cherishchen/archive/2007/07/27/132719.html鍑爮瑙傛搗鍑爮瑙傛搗Fri, 27 Jul 2007 03:09:00 GMThttp://www.tkk7.com/cherishchen/archive/2007/07/27/132719.htmlhttp://www.tkk7.com/cherishchen/comments/132719.htmlhttp://www.tkk7.com/cherishchen/archive/2007/07/27/132719.html#Feedback0http://www.tkk7.com/cherishchen/comments/commentRss/132719.htmlhttp://www.tkk7.com/cherishchen/services/trackbacks/132719.htmlHibernate does not lock objects in memory. Your application can expect the behavior as defined by the isolation level of your database transactions.

Note that thanks to the Session, which is also a transaction-scoped cache, Hibernate provides repeatable reads for lookup by identifier and entity queries (not reporting queries that return scalar values).

Hibernate 娌℃湁鎻愪緵鍦ㄥ唴瀛樹腑瀵瑰璞″姞閿佺殑鍔熻兘錛屽洜姝ゅ簲鐢ㄧ殑浜嬪姟闅旂綰у埆鏄畬鍏ㄧ敱鏁版嵁搴撴潵鎻愪緵鐨勩?/strong>

鍊熷姪浜巗ession錛孒ibernate 鎻愪緵浜嗗彲閲嶅璇葷殑浜嬪姟闅旂綰у埆錛屼絾鏄墠鎻愭槸鍙湁浣跨敤identifier and entity queries鐨勫彲浠ワ紝浣跨敤鏍囬噺鏌ヨ鍒欎笉鍙互錛屽叾鍘熷洜鏄痟ibernate鐨刢ache鐨勫璞¢渶瑕佹槸鑳藉琚敮涓璇嗗埆鐨勫疄浣撳璞★紝鏍囬噺鏌ヨ榪斿洖鐨勭粨鏋滄槸鏁扮粍錛屼笉婊¤凍璇ヨ姹傦紝鏃犳硶鍦╯ession綰у埆榪涜浜嬪姟鐨刢ache

鍦ㄤ簨鍔″拰騫跺彂鎬ф柟闈紝hibernate涓嶄粎鎻愪緵浜嗗熀浜庣増鏈殑鎺у埗鐨勮嚜鍔ㄤ箰瑙傞攣鏈哄埗錛屽悓鏃惰繕鎻愪緵浜咥PI鏉ュ疄鐜版?zhèn)茶閿佹満鍒跺Q堥氳繃SELECT FOR UPDATE 璇硶錛?/strong>

A SessionFactory is an expensive-to-create, threadsafe object intended to be shared by all application threads. It is created once, usually on application startup, from a Configuration instance.

A Session is an inexpensive, non-threadsafe object that should be used once, for a single request, a conversation, single unit of work, and then discarded. A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed, hence consume no resources until used.

Database transactions are never optional, all communication with a database has to occur inside a transaction, no matter if you read or write data.

浜嬪姟騫朵笉鏄彲鏈夊彲鏃犵殑錛屾墍鏈夌殑鏁版嵁搴撴搷浣滈兘鏄湪浜嬪姟鐜涓嬪彂鐢熺殑錛?strong>涓嶇鏄痳ead 鎿嶄綔榪樻槸write鎿嶄綔銆傝繖鐐逛竴瀹氳鍚嶆槑紜紝浠ュ墠鏇劇粡璇В銆?

As explained, auto-commit behavior for reading data should be avoided, as many small transactions are unlikely to perform better than one clearly defined unit of work. The latter is also much more maintainable and extensible.

鏈濂藉叧闂嚜鍔ㄦ彁浜ゅ姛鑳斤紝鍥犱負(fù)浣跨敤澶ч噺鐨勭煭鏁版嵁搴撲簨鍔″湪鎬ц兘涓婃湭蹇呮瘮涓涓竻鏅板畾涔夌殑unit work寮猴紝鍚庤呮洿鍔犳槗浜庣淮鎶ゅ拰鎵╁睍銆傦紙浠ュ墠鏇劇粡璇В錛?

 

涔愯閿佺殑澶勭悊鏂瑰紡

Hibernate checks instance versions at flush time, throwing an exception if concurrent modification is detected.It's up to the developer to catch and handle this exception (common options are the opportunity for the user to merge changes or to restart the business conversation with non-stale data).

鍦╢lush鐨勬椂鍊欐鏌ersion錛屽鏋滃彂鐜版洿鏀逛細(xì)鎶涘嚭寮傚父錛屽紑鍙戜漢鍛樺彲浠ユ崟鎹夎寮傚父錛屽茍鍐沖畾濡備綍澶勭悊錛堣涔堝悎騫朵慨鏀癸紝瑕佷箞鏀懼純淇敼錛?

鎮(zhèn)茶閿佺殑澶勭悊鏂瑰紡

鎮(zhèn)茶閿佸熀鏈笂鏄潬鏁版嵁搴撴湰韜彁渚涚殑鏈哄埗鏉ュ疄鐜幫紝閫氬父鍙涓簀dbc connection鎸囧畾浜嬪姟闅旂鐨勭駭鍒嵆鍙俆he LockMode class defines the different lock levels that may be acquired by Hibernate.

鎮(zhèn)茶閿佷細(xì)鍦ㄨ鍙栨暟鎹箣鍓嶈幏鍙栵紝鍥犳鑳藉淇濊瘉褰撳墠浜嬪姟鐨勬暟鎹氨鏄渶鏂版暟鎹?

 

hibernate鐨勬煡璇㈠垎綾伙細(xì)

1銆佹爣閲忔煡璇紙Scalar queries錛夛細(xì)榪斿洖鐨勮褰曟暟緇勭殑闆嗗悎

鏍囬噺鏄笌鏁扮粍鐩稿鐨勬蹇碉紝鏄竴縐嶇敱鍗曚竴鐨勫兼潵琛ㄥ緛鐨勯噺銆傛墍璋撴爣閲忔煡璇紝灝辨槸鐩存帴浣跨敤鍘熺敓sql璇彞鐨勬煡璇紝涔熷嵆榪斿洖鐨勬槸瑁告暟鎹紙鍙笉榪噃ibernate浣跨敤ResultSetMetaData灝唕esultset涓殑姣忎竴鏉¤褰曟斁鍒頒竴涓暟緇凮bject[]涓?/code>錛夈?/p>

姣斿

List list = session.createSQLQuery("select * from t_area_person").list();

for (Object object : list) {
            Object[] ob = (Object[]) object;
            for (int i = 0; i < ob.length; i++)
                System.out.print("  " +ob[i]);
            System.out.println();
        }

 

2銆佸疄浣撴煡璇?Entity queries)錛氳繑鍥炵殑鏄疄浣撳璞$殑闆嗗悎

3銆丩oad鏂規(guī)硶錛歭ookup by identifier 錛岃繑鍥炵殑鏄identifier 瀵瑰簲鐨勫璞?/strong>



]]>
java璇█涓殑bit 縐諱綅鎿嶄綔http://www.tkk7.com/cherishchen/archive/2007/07/27/132717.html鍑爮瑙傛搗鍑爮瑙傛搗Fri, 27 Jul 2007 03:08:00 GMThttp://www.tkk7.com/cherishchen/archive/2007/07/27/132717.htmlhttp://www.tkk7.com/cherishchen/comments/132717.htmlhttp://www.tkk7.com/cherishchen/archive/2007/07/27/132717.html#Feedback0http://www.tkk7.com/cherishchen/comments/commentRss/132717.htmlhttp://www.tkk7.com/cherishchen/services/trackbacks/132717.html
 

java 浣嶆搷浣滅錛?/strong>

鍙栧弽錛?/strong>~x
- flips each bit to the opposite value.

涓庢搷浣滐細(xì)AND

x & y
- AND operation between the corresponding bits in x and y.

鎴栨搷浣滐細(xì)OR
x | y
- OR operation between the corresponding bits in x and y.

寮傛垨鎿嶄綔錛歑OR
x ^ y
- XOR operation between the corresponding bits in x and y.

宸︾Щ鎿嶄綔錛歋hift left
x << y
- shifts x to the left by y bits. The high order bits are lost while zeros fill the right bits.

灝唜宸︾Щy浣嶏紝縐誨姩榪囩▼涓紝楂樹綅浼?xì)涓㈠?

鏈夌鍙鋒暟鍙崇Щ鎿嶄綔錛歋hift Right - Signed
x >> y
- shifts x to the right by y bits. The low order bits are lost while the sign bit value (0 for positive numbers, 1 for negative) fills in the left bits.

鏃犵鍙鋒暟鍙崇Щ錛歋hift Right - Unsigned
x >>> y
- shifts x to the right by y bits. The low order bits are lost while zeros fill in the left bits regardless of the sign.

渚嬪瓙錛?/strong>

涓嬮潰鐨勪緥瀛愭樉紺哄浣曞皢涓涓猧nt鏁扮粍閫氳繃縐諱綅鎿嶄綔鍘嬬緝鍒頒竴涓猧nt鍐呬繚瀛橈紝鍏跺師鐞嗘槸鍦╦ava璇█涓紝int綾誨瀷浣跨敤4 bytes鏉ヤ繚瀛橈紝鍥犳瀵逛簬闇瑕佸帇緙╃殑int鏁扮粍錛屽叾涓殑姣忎竴涓猧nt鍊肩殑澶у皬涓嶈兘瓚呰繃255錛?鐨?嬈℃柟-1錛夛紝鍥犳榪欏彧鏄竴涓疄渚嬶細(xì)

  int [] aRGB = {0x56, 0x78, 0x9A, 0xBC};   // 鏄敤16榪涘埗淇濆瓨鐨?縐嶉鑹插?br>  int color_val = aRGB[3];   
  color_val = color_val | (aRGB[2] << 8);  // 涓轟簡鍘嬬緝錛岄渶瑕佹斁緗埌color_val鍊肩殑絎簩涓瓧鑺備綅緗笂錛氬皢aRGB[2] 宸︾Щ鍒扮浜屼釜byte錛屽悓鏃朵笌color_val榪涜鎴栨搷浣滐紝涓嬮潰鍚岀悊
  color_val = color_val | (aRGB[1] << 16);  
  color_val = color_val | (aRBG[0] << 24);

鎿嶄綔瀹岀殑緇撴灉鏄?6 78 9A BC

濡傛灉瑕佷粠colorVal 榪樺師涓篿nt鏁扮粍錛屾垨鑰呭緱鍒版暟緇勪腑鐨勬煇涓鹼紝鍙渶瑕佸colorVal 榪涜鐩稿簲鐨勫彸縐繪搷浣滃嵆鍙細(xì)

  int alpha_val = (colorVal >>> 24) & 0xFF;
  int red_val   = (colorVal >>> 16) & 0xFF;
  int green_val = (colorVal >>>  8) & 0xFF;
  int blue_val  =  colorVal & 0xFF;

鍙傝冭祫鏂欙細(xì)

Bits in Java



]]>
浜嬪姟鐩稿叧璧勬枡http://www.tkk7.com/cherishchen/archive/2007/07/26/132554.html鍑爮瑙傛搗鍑爮瑙傛搗Thu, 26 Jul 2007 07:07:00 GMThttp://www.tkk7.com/cherishchen/archive/2007/07/26/132554.htmlhttp://www.tkk7.com/cherishchen/comments/132554.htmlhttp://www.tkk7.com/cherishchen/archive/2007/07/26/132554.html#Feedback0http://www.tkk7.com/cherishchen/comments/commentRss/132554.htmlhttp://www.tkk7.com/cherishchen/services/trackbacks/132554.htmlACID (鍘熷瓙鎬с佷竴鑷存с佸绔嬫у拰鎸佷箙鎬?錛?

 

浜嬪姟綰у埆錛?

1>.READ UNCOMMITTED    鏁堢巼楂?浣嗗彲鑳戒細(xì)鏈夎剰鏁版嵁(淇敼鏁版嵁鏃朵笉鎺掍粬璇?;

2>.READ COMMITTED       閬垮厤浜嗚剰鏁版嵁(淇敼鏁版嵁鏃舵帓浠栬);

3>. REPEATABLE READ      瀵規(guī)弧瓚蟲潯浠剁殑鏁版嵁琛岄泦榪涜閿佸畾錛屼笉鍏佽鍏朵粬浜嬪姟淇敼鍜屽垹闄?

4>.SERIALABLE READ       鏈楂樼駭鍒?紱佹瀵?鏁版嵁琛岄泦鐢氳嚦鏁翠釜鏁版嵁琛級鎻掑叆錛屽洜姝よ兘澶熼槻姝㈠夠褰辮鐨勫彂鐢?

 

甯哥敤鐨勪簨鍔″睘鎬э細(xì)

1>.Required 蹇呴』榪愯鍦ㄤ簨鍔′腑,娌℃湁鐜版垚鐨勫氨鏂板緩涓涓?

2>.RequiresNew 鎸囨槑姣忔榪愯閮藉繀欏繪柊寤轟竴涓簨鍔?

3>.Supports 濡傜洰鍓嶆澶勪簬浜嬪姟涓殑璇濆氨鍔犲叆鍒頒簨鍔′腑鍘?娌℃湁灝辯畻浜?

4>.Mandatory 蹇呴』鏈変竴涓簨鍔℃鍦ㄨ繍琛岃鍏跺姞鍏?鍚﹀垯鎶涘嚭寮傚父;

5>.NotSupported 涓嶉渶瑕佽繍琛屼簬浠諱綍浜嬪姟涓?

6>.Never 涓嶄絾涓嶄細(xì)榪愯浜庝換浣曚簨鍔′腑,濡傛灉鍙戠幇榪愯鍦ㄤ簨鍔′腑浼?xì)鎶涘嚭寮傚父銆?/p>

]]>
Jakarta Commons Lang 鍔熻兘http://www.tkk7.com/cherishchen/archive/2007/07/26/132492.html鍑爮瑙傛搗鍑爮瑙傛搗Thu, 26 Jul 2007 04:14:00 GMThttp://www.tkk7.com/cherishchen/archive/2007/07/26/132492.htmlhttp://www.tkk7.com/cherishchen/comments/132492.htmlhttp://www.tkk7.com/cherishchen/archive/2007/07/26/132492.html#Feedback1http://www.tkk7.com/cherishchen/comments/commentRss/132492.htmlhttp://www.tkk7.com/cherishchen/services/trackbacks/132492.html

浠婂ぉ鐪嬪埌Jakarta Commons Lang錛屽彂鐜版彁渚涗簡寰堝鏈夌敤鐨勫姛鑳?璁板綍涓嬫潵錛岀暀寰呬互鍚庢煡闃?/p>

The Commons Lang library provides much needed additions to the standard JDK's java.lang package. Very generic, very reusable components for everyday use.

lang.*

String manipulation -StringUtils, StringEscapeUtils, RandomStringUtils, Tokenizer, WordUtils

StringEscapeUtils contains methods to escape and unescape Java, JavaScript, HTML, XML and SQL.

RandomStringUtils speaks for itself. It's provides ways in which to generate pieces of text, such as might be used for default passwords.

Character handling - CharSetUtils, CharSet, CharRange, CharUtils

CharUtils exists for this purpose, while CharSetUtils exists for set-manipulation of Strings.Be careful, although CharSetUtils takes an argument of type String, it is only as a set of characters. For example, CharSetUtils.delete("testtest", "tr") will remove all t's and all r's from the String, not just the String "tr".

JVM interaction - SystemUtils, CharEncoding

SystemUtils is a simple little class which makes it easy to find out information about which platform you are on銆?/p>

The CharEncoding class is also used to interact with the Java environment and may be used to see which character encodings are supported in a particular environment.

Serialization - SerializationUtils, SerializationException

 

Assorted functions - ObjectUtils, ClassUtils, ArrayUtils, BooleanUtils

ClassUtils is largely a set of helper methods for reflection. Of special note are the comparators hidden away in ClassUtils, useful for sorting Class and Package objects by name銆?/p>

ArrayUtils. This is a big one with many methods and many overloads of these methods so it is probably worth an in depth look here. Before we begin, assume that every method mentioned is overloaded for all the primitives and for Object. Also, the short-hand 'xxx' implies a generic primitive type, but usually also includes Object.

Flotsam - BitField, Validate

On reaching the end of our package, we are left with a couple of classes that haven't fit any of the topics so far.

The BitField class provides a wrapper class around the classic bitmask integer, whilst the Validate class may be used for assertions

lang.builder.*

HashCodeBuilder will save your day. It, and its buddies (EqualsBuilder, CompareToBuilder, ToStringBuilder), take care of the nasty bits while you focus on the important bits, like which fields will go into making up the hashcode.

甯姪鎻愪緵equals銆乧ompare銆乼oString鏂規(guī)硶

lang.enums.* (formerly lang.enum)

lang.exception.*

lang.math.*

These include classes to represent ranges of numbers, a Fraction class, various utilities for random numbers, and the flagship class, NumberUtils which contains a handful of classic number functions.

lang.mutable.*

mutable package provides mutable wrappers for primitive values (such as int, long, etc.) and Object. These wrappers are simiar to the wrappers provided by the Java API, but allow the wrapped value to be changed without needing to create a separate wrapper object.

lang.text.*

It provides, amongst other classes, a replacement for StringBuffer named StrBuilder, a class for substituting variables within a String named StrSubstitutor and a replacement for StringTokenizer named StrTokenizer. While somewhat ungainly, the Str prefix has been used to ensure we don't clash with any current or future standard Java classes.

lang.time.*

These include a StopWatch for simple performance measurements and an optimised FastDateFormat class.



]]>
主站蜘蛛池模板: 亚洲欧美自偷自拍另类视 | 99久久99这里只有免费费精品 | 亚洲激情在线视频| 黄桃AV无码免费一区二区三区| 国产中文字幕免费观看| 久久亚洲精品11p| 亚洲AⅤ无码一区二区三区在线 | 日本一道一区二区免费看| jiz zz在亚洲| 国产成人啪精品视频免费网| 麻豆安全免费网址入口| 亚洲熟伦熟女新五十路熟妇| 三上悠亚电影全集免费 | 精品日韩99亚洲的在线发布| 日韩视频在线精品视频免费观看 | 亚洲av午夜国产精品无码中文字| 日韩一区二区在线免费观看| 亚洲AV香蕉一区区二区三区| 亚洲成?Ⅴ人在线观看无码| 韩日电影在线播放免费版| 亚洲精品自产拍在线观看动漫| 国产精品色拉拉免费看| 色欲aⅴ亚洲情无码AV| 中文字幕精品无码亚洲字| 日韩免费视频一区二区| 中文字幕 亚洲 有码 在线| 在线看片无码永久免费aⅴ| 一级毛片免费播放男男| 亚洲国产综合91精品麻豆| 永久免费毛片在线播放| 免费国产黄网站在线看| 久久精品国产亚洲AV麻豆~| 麻豆最新国产剧情AV原创免费| 久久精品亚洲日本波多野结衣| 亚洲熟妇无码另类久久久| 中国在线观看免费高清完整版| 黄色网页免费观看| 亚洲一区二区在线视频| 国产成人免费ā片在线观看| 国产精品99久久免费观看 | 中文字幕永久免费|