public class Index extends java.lang.Object implements java.lang.Comparable<Index>, java.io.Serializable
Represents a nitrite database index.
PersistentCollection.createIndex(String, IndexOptions),
Serialized Form| Constructor and Description |
|---|
Index(IndexType indexType,
java.lang.String field,
java.lang.String collectionName)
Instantiates a new Index.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
int |
compareTo(Index other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCollectionName()
Gets the collection name.
|
java.lang.String |
getField()
Gets the target value for the index.
|
IndexType |
getIndexType()
Specifies the type of the index.
|
int |
hashCode() |
java.lang.String |
toString() |
public Index(IndexType indexType, java.lang.String field, java.lang.String collectionName)
Instantiates a new Index.
indexType - the index typefield - the valuecollectionName - the collection namepublic int compareTo(Index other)
compareTo in interface java.lang.Comparable<Index>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic IndexType getIndexType()
Specifies the type of the index.
IndexTypepublic java.lang.String getField()
Gets the target value for the index.
public java.lang.String getCollectionName()
Gets the collection name.