/** * Generate a cached value for each byte value. * * @return Array of cached values for UByte. */ private static final UByte[] mkValues() { UByte[] ret = new UByte[256]; for (int i = Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++) ret[i & MAX_VALUE] = new UByte((byte) i); return ret; }
/** * Generate a cached value for each byte value. * * @return Array of cached values for UByte. */ private static final UByte[] mkValues() { UByte[] ret = new UByte[256]; for (int i = Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++) ret[i & MAX_VALUE] = new UByte((byte) i); return ret; }