Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.kristofa.test.http;
 
 
Simple ContentMatcher around byte[] which will do an equals on the byte[] as is.

Author(s):
kristof
See also:
HttpRequestImpl
    private byte[] content;
    }
    DefaultContentMatcher(final byte[] content) {
        this. = content;
    }

    
    @Override
    public void setContent(final byte[] content) {
        this. = content;
    }

    
    @Override
    public byte[] getContent() {
        return ;
    }

    
    @Override
    public boolean equals(final Object obj) {
        return EqualsBuilder.reflectionEquals(thisobjfalse);
    }

    
    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(thisfalse);
    }

    
    @Override
    public ContentMatcher copy() {
        final DefaultContentMatcher proxy = new DefaultContentMatcher();
        if ( != null) {
            proxy.setContent(Arrays.copyOf(.));
        }
        return proxy;
    }
New to GrepCode? Check out our FAQ X