/** * Compares this {@link Timestamp} to the specified Object. * The result is {@code true} if and only if the parameter is a * {@link Timestamp} object that represents the same point in time, * precision and local offset as this Timestamp. * <p> * Use the {@link #compareTo(Timestamp)} method to compare only the point * in time, <em>ignoring</em> precision and local offset. * * @see #equals(Timestamp) * @see #compareTo(Timestamp) */ @Override public boolean equals(Object t) { if (!(t instanceof Timestamp)) return false; return equals((Timestamp)t); }
/** * Compares this {@link Timestamp} to the specified Object. * The result is {@code true} if and only if the parameter is a * {@link Timestamp} object that represents the same point in time, * precision and local offset as this Timestamp. * <p> * Use the {@link #compareTo(Timestamp)} method to compare only the point * in time, <em>ignoring</em> precision and local offset. * * @see #equals(Timestamp) * @see #compareTo(Timestamp) */ @Override public boolean equals(Object t) { if (!(t instanceof Timestamp)) return false; return equals((Timestamp)t); }
/** * Compares this {@link Timestamp} to the specified Object. * The result is {@code true} if and only if the parameter is a * {@link Timestamp} object that represents the same point in time, * precision and local offset as this Timestamp. * <p> * Use the {@link #compareTo(Timestamp)} method to compare only the point * in time, <em>ignoring</em> precision and local offset. * * @see #equals(Timestamp) * @see #compareTo(Timestamp) */ @Override public boolean equals(Object t) { if (!(t instanceof Timestamp)) return false; return equals((Timestamp)t); }
if (strict) { assert !PUBLIC_COMPARISON_API; // TODO amzn/ion-java#26 result = (((IonTimestamp) v1).timestampValue().equals( ((IonTimestamp) v2).timestampValue()) ? 0 : 1);
if (strict) { assert !PUBLIC_COMPARISON_API; // TODO amznlabs/ion-java#26 result = (((IonTimestamp) v1).timestampValue().equals( ((IonTimestamp) v2).timestampValue()) ? 0 : 1);
if (strict) { assert !PUBLIC_COMPARISON_API; // TODO amzn/ion-java#26 result = (((IonTimestamp) v1).timestampValue().equals( ((IonTimestamp) v2).timestampValue()) ? 0 : 1);