001package edu.pdx.cs410J.lang;
002
003import java.util.Date;
004
005/**
006 * Demonstrates several of the built-in annotations
007 *
008 * @deprecated This class shouldn't be used anymore
009 */
010@Deprecated
011public class AnnotationsExample {
012
013  private final Date now = new Date();
014
015  @SuppressWarnings({"deprecation"})
016  @Override
017  public boolean equals(Object o) {
018    if (o instanceof AnnotationsExample) {
019      AnnotationsExample other = (AnnotationsExample) o;
020      return this.now.getDay() == other.now.getDay() &&
021        this.now.getMonth() == other.now.getMonth() &&
022        this.now.getYear() == other.now.getYear();
023    }
024
025    return false;
026  }
027
028}