2 * Copyright (c) 2003 IBM Corporation and others.
3 * All rights reserved. � This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM - Initial API and implementation
11 package net.sourceforge.phpeclipse.webbrowser.internal;
16 public class Favorite {
19 protected String name;
24 public Favorite(String name, String url) {
33 public String getName() {
37 public void setName(String name) {
41 public String getURL() {
45 public void setURL(String url) {
49 public boolean equals(Object obj) {
50 if (!(obj instanceof Favorite))
53 Favorite f = (Favorite) obj;
54 return (name.equals(f.name) && url.equals(f.url));
57 public String toString() {
58 return "(" + name + "/" + url + ")";