public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { integerCodec.encodePrimitive(ctx, property.getInt(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { integerCodec.encodePrimitive(ctx, property.getInt(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { integerCodec.encodePrimitive(ctx, property.getInt(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { integerCodec.encodePrimitive(ctx, property.getInt(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
@Override public int getInt(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (ObservableIntegerValue.class.isAssignableFrom(property.getType())) return ((ObservableIntegerValue)property.getObject(holder)).get(); return property.getInt(holder); }