Code example for HashCode

Methods: asBytes

0
      return this; 
   } 
 
   public ContentMetadata build() { 
      return new BaseImmutableContentMetadata(contentType, contentLength, 
               contentMD5 == null ? null : contentMD5.asBytes(), contentDisposition, 
               contentLanguage, contentEncoding, expires); 
   } 
 
   public static ContentMetadataBuilder fromContentMetadata(ContentMetadata in) { 
      return new ContentMetadataBuilder().contentType(in.getContentType()).contentLength(in.getContentLength()) 
               .contentMD5(in.getContentMD5()).contentDisposition(in.getContentDisposition()).contentLanguage( 
                        in.getContentLanguage()).contentEncoding(in.getContentEncoding()).expires(in.getExpires()); 
   } 
 
   @Override 
   public int hashCode() { 
      return Objects.hashCode(contentDisposition, contentEncoding, contentLanguage, contentLength,  
               contentMD5, contentType, expires); 
   } 
Experience pair programming with AI  Get Codota for Java