| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008, 2017 EclipseSource and others. |
| 3 |
* |
| 4 |
* This |
| 5 |
* program and the accompanying materials are made available under the terms of |
| 6 |
* the Eclipse Public License 2.0 which accompanies this distribution, and is |
| 7 |
* available at |
| 8 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 9 |
* |
| 10 |
* SPDX-License-Identifier: EPL-2.0 |
| 11 |
* |
| 12 |
* Contributors: |
| 13 |
* EclipseSource - initial API and implementation |
| 14 |
******************************************************************************/ |
| 15 |
package org.eclipse.equinox.p2.metadata; |
| 16 |
|
| 17 |
import org.eclipse.equinox.internal.p2.metadata.IRequiredCapability; |
| 18 |
|
| 19 |
/** |
| 20 |
* @noimplement This interface is not intended to be implemented by clients. |
| 21 |
* @noextend This interface is not intended to be extended by clients. |
| 22 |
* @since 2.0 |
| 23 |
*/ |
| 24 |
public interface IRequirementChange { |
| 25 |
|
| 26 |
/** |
| 27 |
* |
| 28 |
* @noreference This method is not intended to be referenced by clients. |
| 29 |
* @since 2.0 |
| 30 |
*/ |
| 31 |
public IRequiredCapability applyOn(); |
| 32 |
|
| 33 |
/** |
| 34 |
* |
| 35 |
* @noreference This method is not intended to be referenced by clients. |
| 36 |
* @since 2.0 |
| 37 |
*/ |
| 38 |
public IRequiredCapability newValue(); |
| 39 |
|
| 40 |
/** |
| 41 |
* |
| 42 |
* @noreference This method is not intended to be referenced by clients. |
| 43 |
* @since 2.0 |
| 44 |
*/ |
| 45 |
public boolean matches(IRequiredCapability toMatch); |
| 46 |
|
| 47 |
/** |
| 48 |
* Returns whether this requirement change is equal to the given object. |
| 49 |
* |
| 50 |
* This method returns <i>true</i> if: |
| 51 |
* <ul> |
| 52 |
* <li> Both this object and the given object are of type IRequiredCapability |
| 53 |
* <li> The result of <b>applyOn()</b> on both objects are equal |
| 54 |
* <li> The result of <b>newValue()</b> on both objects are equal |
| 55 |
* </ul> |
| 56 |
* @noreference This method is not intended to be referenced by clients. |
| 57 |
* @since 2.0 |
| 58 |
*/ |
| 59 |
@Override |
| 60 |
public boolean equals(Object other); |
| 61 |
} |