added helper method

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-03-09 18:02:47 +00:00
parent 6c0df67be6
commit 22bb1bdd41
1 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,16 @@ final public class OpenWireFormat implements WireFormat {
;
}
public OpenWireFormat copy() {
OpenWireFormat answer = new OpenWireFormat();
answer.stackTraceEnabled = stackTraceEnabled;
answer.tcpNoDelayEnabled = tcpNoDelayEnabled;
answer.cacheEnabled = cacheEnabled;
answer.tightEncodingEnabled = tightEncodingEnabled;
answer.sizePrefixDisabled = sizePrefixDisabled;
return answer;
}
public boolean equals(Object object) {
if( object == null )
return false;