Java Code Examples for com.rometools.rome.feed.impl.EqualsBean#beanEquals()

The following examples show how to use com.rometools.rome.feed.impl.EqualsBean#beanEquals() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SyndEntryImpl.java    From rome with Apache License 2.0 6 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (other == null) {
        return false;
    }
    // while ObjectBean does this check this method does a cast to obtain
    // the foreign markup
    // so we need to check before doing so.
    if (!(other instanceof SyndEntryImpl)) {
        return false;
    }
    // can't use foreign markup in equals, due to JDOM equals impl
    final List<Element> fm = getForeignMarkup();
    setForeignMarkup(((SyndEntryImpl) other).getForeignMarkup());
    final boolean ret = EqualsBean.beanEquals(beanClass, this, other);
    // restore foreign markup
    setForeignMarkup(fm);
    return ret;
}
 
Example 2
Source File: WireFeed.java    From rome with Apache License 2.0 6 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {

    if (other == null) {
        return false;
    }

    if (!(other instanceof WireFeed)) {
        return false;
    }

    // can't use foreign markup in equals, due to JDOM equals impl
    final List<Element> fm = getForeignMarkup();
    setForeignMarkup(((WireFeed) other).getForeignMarkup());
    final boolean ret = EqualsBean.beanEquals(this.getClass(), this, other);
    // restore foreign markup
    setForeignMarkup(fm);
    return ret;

}
 
Example 3
Source File: Rating.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    return EqualsBean.beanEquals(this.getClass(), this, obj);
}
 
Example 4
Source File: Atmosphere.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object o) {
    return EqualsBean.beanEquals(Atmosphere.class, this, o);
}
 
Example 5
Source File: ThreadingModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    return EqualsBean.beanEquals(ThreadingModuleImpl.class, this, obj);
}
 
Example 6
Source File: GoogleBaseImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    return EqualsBean.beanEquals(this.getClass(), this, obj);
}
 
Example 7
Source File: DateValue.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object o) {
    return EqualsBean.beanEquals(DateValue.class, this, o);
}
 
Example 8
Source File: Metadata.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    return EqualsBean.beanEquals(Metadata.class, this, obj);
}
 
Example 9
Source File: Time.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    return EqualsBean.beanEquals(this.getClass(), this, obj);
}
 
Example 10
Source File: NumberValue.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public boolean equals(final Object o) {
    return EqualsBean.beanEquals(NumberValue.class, this, o);
}
 
Example 11
Source File: Content.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Content)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 12
Source File: DCSubjectImpl.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof DCSubjectImpl)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 13
Source File: Category.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Category)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 14
Source File: Content.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Content)) {
        return false;
    }

    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 15
Source File: Category.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Category)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 16
Source File: Generator.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Generator)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 17
Source File: SyndLinkImpl.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof SyndLinkImpl)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 18
Source File: Guid.java    From rome with Apache License 2.0 3 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    if (!(other instanceof Guid)) {
        return false;
    }
    return EqualsBean.beanEquals(this.getClass(), this, other);
}
 
Example 19
Source File: DCModuleImpl.java    From rome with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public final boolean equals(final Object other) {
    return EqualsBean.beanEquals(DCModule.class, this, other);
}
 
Example 20
Source File: OSQuery.java    From rome with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates whether some other object is "equal to" this one as defined by the Object equals()
 * method.
 * <p>
 *
 * @param other he reference object with which to compare.
 * @return <b>true</b> if 'this' object is equal to the 'other' object.
 *
 */
@Override
public boolean equals(final Object other) {
    return EqualsBean.beanEquals(this.getClass(), this, other);
}