class Uint24 implements Comparable<Uint24> {

    public static Uint24 decode(byte[] bytes, int offset) {
        int intValue =  (bytes[offset + 2] & 0xFF)        +
                       ((bytes[offset + 1] & 0xFF) <<  8) +
                       ((bytes[offset    ] & 0xFF) << 16);
        return new Uint24(intValue);
    }

    public  Uint24(int intValue);

}