K
- Key type@Beta public abstract class NamespaceKeyCriterion<K> extends Object
Constructor and Description |
---|
NamespaceKeyCriterion() |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
boolean |
equals(Object obj) |
int |
hashCode() |
static NamespaceKeyCriterion<SourceIdentifier> |
latestRevisionModule(String moduleName)
Return a criterion which selects the latest known revision of a particular module.
|
abstract boolean |
match(K key)
Match a key against this criterion.
|
abstract K |
select(K first,
K second)
Select the better match from two candidate keys.
|
String |
toString() |
public static NamespaceKeyCriterion<SourceIdentifier> latestRevisionModule(String moduleName)
moduleName
- Module namepublic abstract boolean match(K key)
key
- Key to be matchedpublic abstract K select(K first, K second)
first
- First keysecond
- Second keyprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.