blob: 73305ae88ad14f41e8cdd9681cbcea6ed3cefd3e [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2008-2010 See4sys and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* See4sys - Initial API and implementation
*
* </copyright>
*/
package org.eclipse.sphinx.tests.platform.integration.resource;
import org.eclipse.core.runtime.IPath;
public class ResourceHandled {
protected IPath resourceChangedPath;
protected String eventType;
public IPath getResourceChangedPath() {
return resourceChangedPath;
}
public String getEventType() {
return eventType;
}
public ResourceHandled(IPath path, String type) {
resourceChangedPath = path;
eventType = type;
}
@Override
public boolean equals(Object object) {
if (object instanceof ResourceHandled) {
ResourceHandled compareObject = (ResourceHandled) object;
if (!compareObject.getResourceChangedPath().toString().equals(resourceChangedPath.toString())) {
return false;
}
if (!compareObject.getEventType().equals(eventType)) {
return false;
}
return true;
}
return false;
}
}