/** * Returns a hash code for this object instance. * * @return A hash code. */ public int hashCode() { return toSerial(); }
/** * Returns a hash code for this object instance. * * @return A hash code. */ public int hashCode() { return toSerial(); }
/** * Returns a hash code for this object instance. * * @return A hash code. */ public int hashCode() { return toSerial(); }
/** * Tests the equality of this date with an arbitrary object. * <P> * This method will return true ONLY if the object is an instance of the * {@link SerialDate} base class, and it represents the same day as this * {@link SpreadsheetDate}. * * @param object the object to compare (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(final Object object) { if (object instanceof SerialDate) { final SerialDate s = (SerialDate) object; return (s.toSerial() == this.toSerial()); } else { return false; } }
/** * Tests the equality of this date with an arbitrary object. * <P> * This method will return true ONLY if the object is an instance of the * {@link SerialDate} base class, and it represents the same day as this * {@link SpreadsheetDate}. * * @param object the object to compare (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(final Object object) { if (object instanceof SerialDate) { final SerialDate s = (SerialDate) object; return (s.toSerial() == this.toSerial()); } else { return false; } }
/** * Tests the equality of this date with an arbitrary object. * <P> * This method will return true ONLY if the object is an instance of the * {@link SerialDate} base class, and it represents the same day as this * {@link SpreadsheetDate}. * * @param object the object to compare (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(final Object object) { if (object instanceof SerialDate) { final SerialDate s = (SerialDate) object; return (s.toSerial() == this.toSerial()); } else { return false; } }
final int end = Math.max(s1, s2); final int s = toSerial(); if (include == SerialDate.INCLUDE_BOTH) { return (s >= start && s <= end);
final int end = Math.max(s1, s2); final int s = toSerial(); if (include == SerialDate.INCLUDE_BOTH) { return (s >= start && s <= end);
final int end = Math.max(s1, s2); final int s = toSerial(); if (include == SerialDate.INCLUDE_BOTH) { return (s >= start && s <= end);