»ñÈ¡ÆÕͨJava¶ÔÏó´óС
»º´æ¶ÔÏóÐèÒªÖªµÀ¶ÔÏóÕ¼ÓÿռäµÄ´óС,¿ÉÒÔÊÂÏÈÉèÖúÃÿÖÖÀàÐ͵ĴóС,´Ë·½·¨¶ÔÆÕͨµÄ¶ÔÏóÆðЧ,JiveÂÛ̳ÖеĶÔÏóÒ²ÊDzÉÓÃÕâÖÖ°ì·¨À´»ñÈ¡¶ÔÏóµÄ´óСµÄ(È¡×ÔJive).
public class CacheSizes {
/**
* Returns the size in bytes of a basic Object. This method should only
* be used for actual Object objects and not classes that extend Object.
*
* @return the size of an Object.
*/
public static int sizeOfObject() {
return 4;
}
/**
* Returns the size in bytes of a String.
*
* @param string the String to determine the size of.
* @return the size of a String.
*/
public static int sizeOfString(String string) {
if (string == null) {
return 0;
}
return 4 + string.length()*2;
}
/**
* Returns the size in bytes of a primitive int.
*
* @return the size of a primitive int.
*/
public static int sizeOfInt() {
return 4;
}
/**
* Returns the size in bytes of a primitive char.
*
* @return the size of a primitive char.
*/
public static int sizeOfChar() {
return 2;
}
/**
* Returns the size in bytes of a primitive boolean.
*
* @return the size of a primitive boolean.
*/
public static int sizeOfBoolean() {
return 1;
}
/**
* Returns the size in bytes of a primitive long.
*
* @return the size of a primitive long.
*/
public static int sizeOfLong() {
return 8;
}
/**
* Returns the size in bytes of a primitive double.
*
* @return the size of a primitive double.
*/
public static int sizeOfDouble() {
return 8;
}
/**
* Returns the size in bytes of a Date.
*
* @return the size of a Date.
*/
public static int sizeOfDate() {
return 12;
}
/**
* Returns the size in bytes of a Properties object
Ïà¹ØÎĵµ£º
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
javaÖÐȡʱ¼äÊǸù¾ÝjreÖеÄÒ»¸öÎļþÀ´¾ö¶¨µÄ£¬Ä¬ÈϵÄÊǸñÁÖÍþÖÎʱ¼ä£¬ÓÉÓÚÊ±ÇøµÄÔÒò¿ÉÄÜÈ¡µ½µÄʱ¼ä¸úµ±Ç°Ê±¼ä²»Í¬£¬½¨Òé²ÉÓÃÏÂÊö·½·¨ÊÔÊÔ£º ½«jre1.5Ŀ¼ÏµÄ\lib\ziµÄGMTÎļþbak±¸·Ýһϣ¬½«AsiaµÄShanghai ÖØÃüÃûΪGMT ¸´ÖƵ½\lib\ziĿ¼Ï¡£ÓÉÓÚһ̨»úÆ÷ÉÏ¿ÉÄÜ×°¼¸¸öJRE£¬±ÈÈ ......
1 ±³¾°
ÔÚÎÒÃǵÄÏîÄ¿ÖУ¬ÓÐʱºòÔÚÐèÒªÔËÐÐʱ»ñȡһ¶Î½Å±¾²¢Ö´ÐÐÆäÂß¼ÒÔÁé»îµØÊµÏÖÒµÎñÐèÇó¡£ÓÐÈ˵ĵÚÒ»Ïë·¨¾ÍÊǽű¾ÓïÑÔ£¬ÎÒÃǵ±È»¿ÉÒÔÔÚ³ÌÐòÖÐÄÚǶһ¸öPython½âÊÍÆ÷£¬È»ºóÔÚÐèÒªÁé»î±ä¶¯µÄµØ·½Ê¹ÓÃPython½Å±¾ÊµÏÖÎÒÃǵÄÂß¼¡£µ«ÊÇÕâÑù×öÌ«“ÖØÁ¿¼¶”ÁË£¬¿öÇÒÉíΪһ¸öJava³ÌÐòÔ±£¬Äã²»Ò»¶¨¶®µÃPythonµÄÓï·¨£¬ÓÖ ......
³éÏóÀàÍùÍùÓÃÀ´±íÕ÷ÎÒÃÇÔÚ¶ÔÎÊÌâÁìÓò½øÐзÖÎö¡¢ Éè¼ÆÖеóöµÄ³éÏó¸ÅÄÊǶÔһϵÁп´ÉÏÈ¥²»Í¬£¬µ«ÊDZ¾ÖÊÉÏÏàͬµÄ¾ßÌå¸ÅÄîµÄ³éÏó£¬ÎÒÃDz»ÄܰÑËüÃÇʵÀý»¯£¨Äò»³öÒ»¸ö¾ßÌåµÄ¶«Î÷£©ËùÒÔ³ÆÖ®Îª³éÏó¡£±ÈÈ磺ÎÒÃÇÒªÃèÊö“Ë®¹û”£¬Ëü¾ÍÊÇÒ»¸ö³éÏó£¬ËüÓÐÖÊÁ¿¡¢Ìå»ýµÈһЩ¹²ÐÔ£¨Ë®¹ûÓÐÖÊÁ¿£©£¬µ«ÓÖȱ·¦ÌØÐÔ£¨Æ»¹û¡¢ ......
º®¼Ùµ½À´ÏëÔÚ¼Òѧµã¶«Î÷£¬ÎҾʹÓÍøÕ¾ÏÂÁËjdk1.6¡£ÏÂÈí¼þÊǺܼòµ¥ÔÚ°²×°Ê±ÓÖÖØÏÖ֮ǰ°²×°µÄÎÊÌ⣬»·¾³±äÁ¿Ð޸IJ»¶Ô¡£ÔÚÄǺķÑÁËÒ»¸ö¶àСʱû¸ãºÃ£¬ºÜÓôÃÆ¡£±ðÈË×°µÄÄÇô¼òµ¥£¬ÎÒÔõôŪÆðÀ´ÄÇô·ÑÊÂÄØ¡£ÎÒÔÚÍøÉϾÍÈ¥ËÑË÷½á¹û¶¼²»Æ¥Å䣬տµÄ°ÑŪ»ðÁË¡£»¹±»Ê¦ÐÖºÍÀÏʦ˵ÁË£¬»Øµ½ÇÞÊÒÎÒÄÃÆðÊéÒ»¿´£¬ÏȰ´ÊéÉϵ ......