blob: 9bbc97f89cdc7e99a5b50357bace62eac1e643a0 [file] [log] [blame]
/*=========================================================================
* Copyright (c) 2010-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* one or more patents listed at http://www.pivotal.io/patents.
*=========================================================================
*/
package com.gemstone.gemfire.pdx.internal;
import java.nio.ByteBuffer;
import com.gemstone.gemfire.internal.tcp.ByteBufferInputStream.ByteSource;
import com.gemstone.gemfire.internal.tcp.ByteBufferInputStream.ByteSourceFactory;
/**
* Used by {@link PdxInstanceImpl#equals(Object)} to act as if it has
* a field whose value is always the default.
* @author darrel
*
*/
public class DefaultPdxField extends PdxField {
public DefaultPdxField(PdxField f) {
super(f);
}
public ByteSource getDefaultBytes() {
return ByteSourceFactory.create(getFieldType().getDefaultBytes());
}
}