Пример #1
0
 @Override
 public boolean equals(Object otherObject) {
   if (this == otherObject) {
     return true;
   }
   if (!(otherObject instanceof Range)) {
     return false;
   }
   final Range year = (Range) otherObject;
   return this.getRangeStart().equals(year.getRangeStart())
       && this.getRangeEnd().equals(year.getRangeEnd());
 }