Class NamespaceKeyCriterion<K>
java.lang.Object
org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceKeyCriterion<K>
- Type Parameters:
K
- Key type
Namespace key matching criterion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
addToStringAttributes
(MoreObjects.ToStringHelper toStringHelper) final boolean
final int
hashCode()
latestRevisionModule
(UnresolvedQName.Unqualified moduleName) Return a criterion which selects the latest known revision of a particular module.abstract boolean
Match a key against this criterion.abstract K
Select the better match from two candidate keys.final String
toString()
-
Constructor Details
-
NamespaceKeyCriterion
public NamespaceKeyCriterion()
-
-
Method Details
-
latestRevisionModule
public static NamespaceKeyCriterion<SourceIdentifier> latestRevisionModule(UnresolvedQName.Unqualified moduleName) Return a criterion which selects the latest known revision of a particular module.- Parameters:
moduleName
- Module name- Returns:
- A criterion object.
-
match
Match a key against this criterion.- Parameters:
key
- Key to be matched- Returns:
- True if the key matches this criterion, false otherwise.
-
select
Select the better match from two candidate keys.- Parameters:
first
- First keysecond
- Second key- Returns:
- Selected key, must be either first or second key, by identity.
-
toString
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) -
hashCode
public final int hashCode() -
equals
-