@Override public void write(final OutputStream out) throws IOException { out.write(TYPE_COLOR); super.write(out); out.write(color.getRed()); out.write(color.getGreen()); out.write(color.getBlue()); out.write(color.getAlpha()); }
@Override public void load(final HexFieldValue val) { super.load(val); this.color = ((HexColorValue) val).getColor(); }