Class NamespaceKeyCriterion<K>
java.lang.Object
org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceKeyCriterion<K>
- Type Parameters:
K- Key type
Namespace key matching criterion.
- Author:
- Robert Varga
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) final booleanfinal inthashCode()static NamespaceKeyCriterion<org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier>latestRevisionModule(UnresolvedQName.Unqualified moduleName) Return a criterion which selects the latest known revision of a particular module.abstract booleanMatch a key against this criterion.abstract KSelect the better match from two candidate keys.final StringtoString()
-
Constructor Details
-
NamespaceKeyCriterion
public NamespaceKeyCriterion()
-
-
Method Details
-
latestRevisionModule
public static NamespaceKeyCriterion<org.opendaylight.yangtools.yang.model.repo.api.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 com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) -
hashCode
public final int hashCode() -
equals
-