@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }
@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }
@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }
@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }
@Override public void mergeFrom(Input input, Object owner) throws IOException { setValue(readObjectFrom(input, this, owner, strategy), owner); }
@Override public void mergeFrom(Input input, Object owner) throws IOException { setValue(readObjectFrom(input, this, owner, strategy), owner); }
@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }
@Override @SuppressWarnings("unchecked") public void mergeFrom(Input input, Object owner) throws IOException { if (PMapWrapper.class == owner.getClass()) { // called from ENTRY_SCHEMA ((PMapWrapper) owner).setValue(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } else { // called from COLLECTION_SCHEMA ((Collection<Object>) owner).add(ObjectSchema.readObjectFrom( input, this, owner, IdStrategy.this)); } }