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 FormConstructor 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>
@Generated(value="lombok") public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@Generated(value="lombok") protected boolean canEqual(java.lang.Object other)
@Generated(value="lombok") public int hashCode()
hashCode
in class java.lang.Object
@Generated(value="lombok") public java.lang.String toString()
toString
in class java.lang.Object
@Generated(value="lombok") public IndexType getIndexType()
Specifies the type of the index.
IndexType
@Generated(value="lombok") public java.lang.String getField()
Gets the target value for the index.
@Generated(value="lombok") public java.lang.String getCollectionName()
Gets the collection name.