/** * IsEquivalent for DvTime is valid only for point of time within one single day. * For example, 00:00:01Z(for 1970-01-01) is supposed to be equivalent to the * point of datetime 23:00:01-01(on 1969-12-31). However, because no date is involved * in DvTime, 23:00:01-01 can only be treated as 23:00:01-01(of the same day as the other * DvTime in comparison). So 23:00:01-01 is simply interpreted as a point of time on * 1970-01-01 in a zone an hour behind UTC. * */ public boolean isEquivalent(Object o) { return super.isEquivalent(o); }
/** * Two DvTemporal are equal if both indicate the same point of * datetime. This function should be overwritten in subclass. * * @param o * @return true if equals */ public boolean equals(Object o) { return isEquivalent(o); }
/** * IsEquivalent for DvTime is valid only for point of time within one single day. * For example, 00:00:01Z(for 1970-01-01) is supposed to be equivalent to the * point of datetime 23:00:01-01(on 1969-12-31). However, because no date is involved * in DvTime, 23:00:01-01 can only be treated as 23:00:01-01(of the same day as the other * DvTime in comparison). So 23:00:01-01 is simply interpreted as a point of time on * 1970-01-01 in a zone an hour behind UTC. * */ public boolean isEquivalent(Object o) { return super.isEquivalent(o); }
/** * Two DvTemporal are equal if both indicate the same point of * datetime. This function should be overwritten in subclass. * * @param o * @return true if equals */ public boolean equals(Object o) { return isEquivalent(o); }