Пример #1
0
 public synchronized boolean equals(java.lang.Object obj) {
   if (!(obj instanceof Version)) return false;
   Version other = (Version) obj;
   if (obj == null) return false;
   if (this == obj) return true;
   if (__equalsCalc != null) {
     return (__equalsCalc == obj);
   }
   __equalsCalc = obj;
   boolean _equals;
   _equals =
       true
           && ((this.id == null && other.getId() == null)
               || (this.id != null && this.id.equals(other.getId())))
           && ((this.created == null && other.getCreated() == null)
               || (this.created != null && this.created.equals(other.getCreated())))
           && ((this.creator == null && other.getCreator() == null)
               || (this.creator != null && this.creator.equals(other.getCreator())))
           && ((this.label == null && other.getLabel() == null)
               || (this.label != null && this.label.equals(other.getLabel())))
           && this.major == other.isMajor()
           && ((this.commentaries == null && other.getCommentaries() == null)
               || (this.commentaries != null
                   && java.util.Arrays.equals(this.commentaries, other.getCommentaries())));
   __equalsCalc = null;
   return _equals;
 }