Package dev.equo.solstice.p2
Interface P2Session.Requirement
-
- All Superinterfaces:
java.lang.Comparable<P2Session.Requirement>
- Enclosing class:
- P2Session
public static interface P2Session.Requirement extends java.lang.Comparable<P2Session.Requirement>
Keeps track of every unit which provides the given capability.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intcompareTo(P2Session.Requirement o)org.osgi.framework.FiltergetFilter()java.lang.StringgetName()java.lang.StringgetNamespace()P2UnitgetOnlyProvider()java.util.List<P2Unit>getProviders()P2Session.RequirementgetRoot()Returns a non-optional form of the requirement.booleanhasOnlyOneProvider()booleanisOptional()
-
-
-
Method Detail
-
isOptional
boolean isOptional()
-
getFilter
@Nullable org.osgi.framework.Filter getFilter()
-
getNamespace
java.lang.String getNamespace()
-
getName
java.lang.String getName()
-
hasOnlyOneProvider
boolean hasOnlyOneProvider()
-
getOnlyProvider
P2Unit getOnlyProvider()
-
getProviders
java.util.List<P2Unit> getProviders()
-
getRoot
P2Session.Requirement getRoot()
Returns a non-optional form of the requirement.
-
compareTo
default int compareTo(@NotNull P2Session.Requirement o)- Specified by:
compareToin interfacejava.lang.Comparable<P2Session.Requirement>
-
-