/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
/** * {@inheritDoc} * <p> * Override this method to return a new instance of this object whose content is set to the specified * {@code content}. The default implementation of {@link #copy()}, {@link #duplicate()} and * {@link #retainedDuplicate()} invokes this method to create a copy. */ @Override public ByteBufHolder replace(ByteBuf content) { return new DefaultByteBufHolder(content); }
@Override public ByteBufHolder copy() { return new DefaultByteBufHolder(data.copy()); }
@Override public ByteBufHolder duplicate() { return new DefaultByteBufHolder(data.duplicate()); }