Lines Matching refs:copy
14 * version 2 for more details (a copy is included in the LICENSE file that
17 * You should have received a copy of the GNU General Public License version
172 * Used by {@link #createResponse(Message)} and {@link #copy(boolean)}.
190 // copy other properties that need to be copied. is there any?
194 * Creates a copy of this {@link Packet}.
197 * well, or not. If the value is {@code false}, the {@link Message} in the copy of the {@link Packet} is {@code null}.
198 * @return copy of the original packet
200 public Packet copy(boolean copyMessage) {
201 // the copy constructor is originally designed for creating a response packet,
202 // but so far the implementation is usable for this purpose as well, so calling the copy constructor
204 Packet copy = new Packet(this);
206 copy.message = this.message.copy();
209 return copy;