今天,由于需要模拟一个RFID卡的过车记录过程!其中有一个需要模拟RFID标签的! 由于RFID标签数量有限!而BOSS又要我一下搞30万条数据到数据库中去(变态)!RFID卡由16进制组成。 于是在SQL Server中写下了两个关于16进制转换的函数,以随机的来生成所需RF
import java.awt.Color;
public class OperaColor extends Color {
public OperaColor(int r, int g, int b) {
super(r, g, b);
}
/**
* * Returns the HEX value representing the colour in the default sRGB
* ColorModel. * * @return the HEX value of the colour in the default sRGB
* ColorModel
*/
public String getHex() {
return toHex(getRed(), getGreen(), getBlue());
}
/**
* * Returns a web browser-friendly HEX value representing the colour in the
* default sRGB * ColorModel. * * @param r red * @param g green * @param b
* blue * @return a browser-friendly HEX value
*/
publi