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