ruper2/src/java/core/org/krysalis/ruper/protocols VirtualResourceLocator.java,1.6,1.7

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/protocols
In directory sc8-pr-cvs1:/tmp/cvs-serv31636/src/java/core/org/krysalis/ruper/protocols

Modified Files:
	VirtualResourceLocator.java 
Log Message:
Added equals method

Index: VirtualResourceLocator.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/protocols/VirtualResourceLocator.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** VirtualResourceLocator.java	12 Sep 2003 15:19:43 -0000	1.6
--- VirtualResourceLocator.java	16 Sep 2003 13:50:40 -0000	1.7
***************
*** 82,86 ****
  	 * 
  	 * @return
! 	 * @throws MalformedUrlException
  	 */
  	public URL getResourceLocator() throws MalformedURLException {
--- 82,86 ----
  	 * 
  	 * @return
! 	 * @throws MalformedURLException
  	 */
  	public URL getResourceLocator() throws MalformedURLException {
***************
*** 99,102 ****
--- 99,114 ----
  		return m_url;
  	}
+ 
+     public boolean equals(Object obj) {
+         boolean isEqual = false;
+         if( obj instanceof VirtualResourceLocator ) {
+             VirtualResourceLocator rhs = (VirtualResourceLocator) obj;
+             if( m_protocol.equals( rhs.m_protocol ) &&
+                     m_url.equals( rhs.m_url ) ) {
+                 isEqual = true;
+             }
+         }
+         return isEqual;
+     }
  
  	public static VirtualResourceLocator getTestVRL() {




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.