Ejemplo n.º 1
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (contentType == null || contentType.isEmpty())
       && (language == null || language.isEmpty())
       && (data == null || data.isEmpty())
       && (url == null || url.isEmpty())
       && (size == null || size.isEmpty())
       && (hash == null || hash.isEmpty())
       && (title == null || title.isEmpty())
       && (creation == null || creation.isEmpty());
 }
Ejemplo n.º 2
0
 public Attachment copy() {
   Attachment dst = new Attachment();
   copyValues(dst);
   dst.contentType = contentType == null ? null : contentType.copy();
   dst.language = language == null ? null : language.copy();
   dst.data = data == null ? null : data.copy();
   dst.url = url == null ? null : url.copy();
   dst.size = size == null ? null : size.copy();
   dst.hash = hash == null ? null : hash.copy();
   dst.title = title == null ? null : title.copy();
   dst.creation = creation == null ? null : creation.copy();
   return dst;
 }