blob: 59578f7da18a5adb26b1b945277d839f88745d77 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2009 EclipseSource and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.internal.provisional.p2.metadata;
/**
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
public interface IRequirementChange {
public IRequiredCapability applyOn();
public IRequiredCapability newValue();
public boolean matches(IRequiredCapability toMatch);
/**
* Returns whether this requirement change is equal to the given object.
*
* This method returns <i>true</i> if:
* <ul>
* <li> Both this object and the given object are of type IRequiredCapability
* <li> The result of <b>applyOn()</b> on both objects are equal
* <li> The result of <b>newValue()</b> on both objects are equal
* </ul>
*/
public boolean equals(Object other);
}