@Deprecated public class BaseNameGrabber extends Object implements GrabberIF<TopicIF,TopicNameIF>
| Modifier and Type | Field and Description |
|---|---|
protected Comparator<TopicNameIF> |
comparator
Deprecated.
PROTECTED: The comparator used to sort the base names.
|
| Constructor and Description |
|---|
BaseNameGrabber(Collection<TopicIF> scope)
Deprecated.
INTERNAL: Creates a grabber; uses a BaseComparator with the given
scope.
|
BaseNameGrabber(Comparator<TopicNameIF> comparator)
Deprecated.
INTERNAL: Creates a grabber which uses the given comparator.
|
| Modifier and Type | Method and Description |
|---|---|
TopicNameIF |
grab(TopicIF _topic)
Deprecated.
INTERNAL: Grabs the most appropriate base name for the given topic,
using the comparator established at creation to compare available
base names.
|
protected Comparator<TopicNameIF> comparator
public BaseNameGrabber(Collection<TopicIF> scope)
scope - A scope; a collection of TopicIF objects.public BaseNameGrabber(Comparator<TopicNameIF> comparator)
comparator - The given comparatorpublic TopicNameIF grab(TopicIF _topic)
grab in interface GrabberIF<TopicIF,TopicNameIF>topic - A topic; formally an Object, but must implement TopicIF.throws - OntopiaRuntimeException if the given topic is not
a TopicIF object.