<AHREF="../../../../../com/sun/syndication/feed/impl/CopyFromHelper.html"title="class in com.sun.syndication.feed.impl"><B>PREV CLASS</B></A>
<AHREF="../../../../../com/sun/syndication/feed/impl/ObjectBean.html"title="class in com.sun.syndication.feed.impl"><B>NEXT CLASS</B></A></FONT></TD>
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../../../resources/inherit.gif"ALT="extended by "><B>com.sun.syndication.feed.impl.EqualsBean</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html?is-external=true"title="class or interface in java.io">Serializable</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>EqualsBean</B><DT>extends <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><DT>implements <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html?is-external=true"title="class or interface in java.io">Serializable</A></DL>
</PRE>
<P>
Provides deep <b>Bean</b> equals() and hashCode() functionality for Java Beans.
<p>
It works on all read/write properties, recursively. It support all primitive types, Strings, Collections,
bean-like objects and multi-dimensional arrays of any of them.
<p>
The hashcode is calculated by getting the hashcode of the Bean String representation.
<TD><CODE><B><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#EqualsBean(java.lang.Class)">EqualsBean</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true"title="class or interface in java.lang">Class</A> beanClass)</CODE>
<TD><CODE><B><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#EqualsBean(java.lang.Class, java.lang.Object)">EqualsBean</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true"title="class or interface in java.lang">Class</A> beanClass,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</CODE>
<BR>
Creates a EqualsBean to be used in a delegation pattern.</TD>
<TD><CODE><B><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#beanEquals(java.lang.Object)">beanEquals</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</CODE>
<BR>
Indicates whether some other object is "equal to" the object passed in the constructor,
<TD><CODE><B><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#equals(java.lang.Object)">equals</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</CODE>
<BR>
Indicates whether some other object is "equal to" this object as defined by the Object equals() method.</TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
protected <B>EqualsBean</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true"title="class or interface in java.lang">Class</A> beanClass)</PRE>
<DL>
<DD>Default constructor.
<p>
To be used by classes extending EqualsBean only.
<p>
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>beanClass</CODE> - the class/interface to be used for property scanning.</DL>
public <B>EqualsBean</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true"title="class or interface in java.lang">Class</A> beanClass,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</PRE>
<DL>
<DD>Creates a EqualsBean to be used in a delegation pattern.
<p>
For example:
<p>
<code>
public class Foo implements FooI {
private EqualsBean _equalsBean;
public Foo() {
_equalsBean = new EqualsBean(FooI.class);
}
public boolean equals(Object obj) {
return _equalsBean.beanEquals(obj);
}
public int hashCode() {
return _equalsBean.beanHashCode();
}
}
</code>
<p>
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>beanClass</CODE> - the class/interface to be used for property scanning.<DD><CODE>obj</CODE> - object bean to test equality.</DL>
public boolean <B>equals</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</PRE>
<DL>
<DD>Indicates whether some other object is "equal to" this object as defined by the Object equals() method.
<p>
To be used by classes extending EqualsBean. Although it works also for classes using
EqualsBean in a delegation pattern, for correctness those classes should use the
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A></CODE> in class <CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - he reference object with which to compare.
<DT><B>Returns:</B><DD><b>true</b> if 'this' object is equal to the 'other' object.<DT><B>See Also:</B><DD><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#beanEquals(java.lang.Object)"><CODE>beanEquals method.
public boolean <B>beanEquals</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> obj)</PRE>
<DL>
<DD>Indicates whether some other object is "equal to" the object passed in the constructor,
as defined by the Object equals() method.
<p>
To be used by classes using EqualsBean in a delegation pattern,
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - he reference object with which to compare.
<DT><B>Returns:</B><DD><b>true</b> if the object passed in the constructor is equal to the 'obj' object.<DT><B>See Also:</B><DD><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#EqualsBean(java.lang.Class, java.lang.Object)"><CODE>constructor.
<p></CODE></A></DL>
</DD>
</DL>
<HR>
<ANAME="hashCode()"><!----></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Returns the hashcode for this object.
<p>
It follows the contract defined by the Object hashCode() method.
<p>
The hashcode is calculated by getting the hashcode of the Bean String representation.
<p>
To be used by classes extending EqualsBean. Although it works also for classes using
EqualsBean in a delegation pattern, for correctness those classes should use the
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the hashcode of the bean object.<DT><B>See Also:</B><DD><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#beanHashCode()"><CODE>beanHashCode method.
<p></CODE></A></DL>
</DD>
</DL>
<HR>
<ANAME="beanHashCode()"><!----></A><H3>
beanHashCode</H3>
<PRE>
public int <B>beanHashCode</B>()</PRE>
<DL>
<DD>Returns the hashcode for the object passed in the constructor.
<p>
It follows the contract defined by the Object hashCode() method.
<p>
The hashcode is calculated by getting the hashcode of the Bean String representation.
<p>
To be used by classes using EqualsBean in a delegation pattern,
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the hashcode of the bean object.<DT><B>See Also:</B><DD><AHREF="../../../../../com/sun/syndication/feed/impl/EqualsBean.html#EqualsBean(java.lang.Class, java.lang.Object)"><CODE>constructor.
<AHREF="../../../../../com/sun/syndication/feed/impl/CopyFromHelper.html"title="class in com.sun.syndication.feed.impl"><B>PREV CLASS</B></A>
<AHREF="../../../../../com/sun/syndication/feed/impl/ObjectBean.html"title="class in com.sun.syndication.feed.impl"><B>NEXT CLASS</B></A></FONT></TD>