Class AbstractIndexDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.AbstractIndexDescriptor
-
- All Implemented Interfaces:
Comparable<AbstractIndexDescriptor>
- Direct Known Subclasses:
IndexDescriptor,VLVIndexDescriptor
public abstract class AbstractIndexDescriptor extends Object implements Comparable<AbstractIndexDescriptor>
Abstract class used to describe the configuration of an index.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIndexDescriptor(String name, BackendDescriptor backend)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BackendDescriptorgetBackend()Returns the backend where the index is defined.StringgetName()Returns the name of the index.protected abstract voidrecalculateHashCode()Method used to minimize the times the hashcode is calculated.voidsetBackend(BackendDescriptor backend)Sets which is the backend where the index is defined.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
AbstractIndexDescriptor
protected AbstractIndexDescriptor(String name, BackendDescriptor backend)
Constructor.- Parameters:
name- the name of the index.backend- the backend where the index is defined.
-
-
Method Detail
-
getName
public String getName()
Returns the name of the index.- Returns:
- the name of the index.
-
getBackend
public BackendDescriptor getBackend()
Returns the backend where the index is defined.- Returns:
- the backend where the index is defined.
-
setBackend
public void setBackend(BackendDescriptor backend)
Sets which is the backend where the index is defined.- Parameters:
backend- the backend where the index is defined.
-
recalculateHashCode
protected abstract void recalculateHashCode()
Method used to minimize the times the hashcode is calculated.
-
-