Lines Matching defs:object
623 * Compares the specified object with this simple date format and indicates
624 * if they are equal. In order to be equal, {@code object} must be an
628 * @param object
629 * the object to compare with this object.
630 * @return {@code true} if the specified object is equal to this simple date
635 public boolean equals(Object object) {
636 if (this == object) {
639 if (!(object instanceof SimpleDateFormat)) {
642 SimpleDateFormat simple = (SimpleDateFormat) object;
643 return super.equals(object) && pattern.equals(simple.pattern)
648 * Formats the specified object using the rules of this simple date format
652 * @param object
653 * the object to format.
657 * if the object is {@code null}.
659 * if the object cannot be formatted by this simple date
663 public AttributedCharacterIterator formatToCharacterIterator(Object object) {
664 if (object == null) {
667 if (object instanceof Date) {
668 return formatToCharacterIteratorImpl((Date) object);
670 if (object instanceof Number) {
671 return formatToCharacterIteratorImpl(new Date(((Number) object)
723 * if the object cannot be formatted by this Format.
1035 * @return the {@code DateFormatSymbols} object.
1413 * the new {@code DateFormatSymbols} object.