package it.unipr.mobdev;

public class BookmarkDescriptor {

	private String name = null;
	private String url = null;
	
	public BookmarkDescriptor(String name, String url) {
		super();
		this.name = name;
		this.url = url;
	}
	
	@Override
	public boolean equals(Object o) {
		BookmarkDescriptor obj = (BookmarkDescriptor)o;
		if(obj.getName().equals(name) && obj.getUrl().equals(url))
			return true;
		else
			return false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
	
	
	
}
