JavaÖеÄbyte
ºÜÓôÃÆ Ò»¶ÎºÜ¼òµ¥µÄ´úÂë °ÑARGBתΪRGBA£¬½á¹ûͼÏñÑÕÉ«Æ«ºì¡£
¸ãÁ˺ܾ㬲ÅÖªµÀÎÊÌâ³öÔÚÁËbyteÉíÉÏ¡£
Ò»¸öÑÕÉ«·ÖÁ¿8룬Ï뵱ȻµÄÓÃÁËbyte£¬×éºÏ³ÉÒ»¸öÏñËØ32룬¾ÍÊÇ
(r<<24)|(g<<16)|(b<<8)|(a)
ÎÊÌâ¾Í³öÔÚÁËbyteµ½intµÄת»»ÉÏ
byteÔÚJavaÖÐÊÇÓзûºÅµÄ £¨win32ÖÐÊÇunsigned char£©
ÕâÑù0xFFת³Éint¾Í±ä³É0xFFFFFFFF (-1)
Ò²¾ÍÊÇ˵Èç¹ûÀ¶É« b=0xFFµÄ»°£¬ ÕâÑùת»¯¹ýºóÑÕÉ«¾Í±äΪ°×É«ÁË
Èç¹ûÊÇÂÌÉ«µÄ»° ¾Í±ä»ÆÉ«ÁË
²»ÖªµÀJavaÔÚÉè¼ÆʱÔõôÏëµÄ£¬byteΪÎÞ·ûºÅ²Å¸ü¼ÓÌùºÏÎÒÃǵÄÐèÒª
Ïà¹ØÎĵµ£º
¶¨Ò嶯̬´úÀíÀàDynamicProxy
package com.zte.adc.common;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class DynamicProxy implements InvocationHandler {
private Object object;
// °ó¶¨¹Øϵ£¬Ò²¾ÍÊǹØÁªµ½Äĸö½Ó¿Ú£¨Óë ......
Javaͨ¹ýXML SchemaУÑéXML
XMLµÄУÑéÔÚXML´¦ÀíÖзdz£³£¼û£¬Èç¹ûûÓÐÓÐЧµÄ°ì·¨À´Ð£ÑéXMLµÄºÏ·¨ÐÔ£¬ÍùÍù»áµ¼ÖºܶàÎÊÌâ¡£
XMLµÄУÑéÊÇͨ¹ýXML Schema£¨XSD£© »òDTDÎļþµÄÓï·¨¹æ·¶À´Ð£ÑéµÄ¡£DTDÏÖÔÚÔ½À´Ô½²»ÊÜ»¶ÓÁË£¬ÔÚ´ËÑ¡ÓÃXSDÀ´Ð£Ñé¡£
JavaУÑéXMLÊǼþºÍ³¶µµÄÊÂÇ飬ÒòΪSunµÄXMLÏà¹ØÈí¼þ°ü» ......
package Utils.Sort;
/**
*ÀûÓÃÑ¡ÔñÅÅÐò·¨¶ÔÊý×éÅÅÐò£¬Êý×éÖÐÔªËرØÐëʵÏÖÁËComparable½Ó¿Ú¡£
*/
public class ChooseSort implements SortStrategy
{
/**
*¶ÔÊý×éobjÖеÄÔªËØÒÔÑ¡ÔñÅÅÐòËã·¨½øÐÐÅÅÐò
&n ......
package Utils.Sort;
/**
*¹é²¢ÅÅÐò£¬ÒªÇó´ýÅÅÐòµÄÊý×é±ØÐëʵÏÖComparable½Ó¿Ú
*/
public class MergeSort implements SortStrategy
{
private Comparable[] bridge;
/**
*ÀûÓù鲢ÅÅÐòË ......
package Utils.Sort;
/**
*ÀûÓÃðÅÝÅÅÐò·¨¶ÔÊý×éÅÅÐò£¬Êý×éÖÐÔªËرØÐëʵÏÖÁËComparable½Ó¿Ú¡£
*/
public class BubbleSort implements SortStrategy
{
/**
*¶ÔÊý×éobjÖеÄÔªËØÒÔðÅÝÅÅÐòËã·¨½øÐÐÅÅÐò
......