@Test public void testEquals() { Day day1 = new Day(29, MonthConstants.MARCH, 2002); Hour hour1 = new Hour(15, day1); Minute minute1 = new Minute(15, hour1); Day day2 = new Day(29, MonthConstants.MARCH, 2002); Hour hour2 = new Hour(15, day2); Minute minute2 = new Minute(15, hour2); assertEquals(minute1, minute2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Minute)) { return false; } Minute that = (Minute) obj; if (this.minute != that.minute) { return false; } if (this.hour != that.hour) { return false; } return true; }
Minute extends RegularTimePeriod implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Minute)) { return false; } Minute that = (Minute) obj; if (this.minute != that.minute) { return false; } if (this.hour != that.hour) { return false; } return true; } }
Minute extends RegularTimePeriod implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Minute)) { return false; } Minute that = (Minute) obj; if (this.minute != that.minute) { return false; } if (this.hour != that.hour) { return false; } return true; } Minute();  Minute(int minute, Hour hour);  Minute(Date time);  Minute(Date time, TimeZone zone, Locale locale);  Minute(int minute, int hour, int day, int month, int year); }
Minute extends RegularTimePeriod implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Minute)) { return false; } Minute that = (Minute) obj; if (this.minute != that.minute) { return false; } if (this.hour != that.hour) { return false; } return true; } Minute();  Minute(int minute, Hour hour);  Minute(Date time);  Minute(Date time, TimeZone zone, Locale locale);  Minute(int minute, int hour, int day, int month, int year); Day getDay(); Hour getHour(); int getHourValue(); int getMinute(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); static Minute parseMinute(String s); }
Minute extends RegularTimePeriod implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Minute)) { return false; } Minute that = (Minute) obj; if (this.minute != that.minute) { return false; } if (this.hour != that.hour) { return false; } return true; } Minute();  Minute(int minute, Hour hour);  Minute(Date time);  Minute(Date time, TimeZone zone, Locale locale);  Minute(int minute, int hour, int day, int month, int year); Day getDay(); Hour getHour(); int getHourValue(); int getMinute(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); static Minute parseMinute(String s); static final int FIRST_MINUTE_IN_HOUR; static final int LAST_MINUTE_IN_HOUR; }