Package app.ductape.sdk.database.types
Record Class SchemaTypes.SimpleIndexOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.SimpleIndexOptions
- Enclosing class:
- SchemaTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpireAfterSecondsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.sparse()Returns the value of thesparserecord component.final StringtoString()Returns a string representation of this record class.unique()Returns the value of theuniquerecord component.where()Returns the value of thewhererecord component.
-
Constructor Details
-
SimpleIndexOptions
public SimpleIndexOptions(Boolean unique, String name, Boolean sparse, String where, Integer expireAfterSeconds) Creates an instance of aSimpleIndexOptionsrecord class.- Parameters:
unique- the value for theuniquerecord componentname- the value for thenamerecord componentsparse- the value for thesparserecord componentwhere- the value for thewhererecord componentexpireAfterSeconds- the value for theexpireAfterSecondsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
unique
Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sparse
Returns the value of thesparserecord component.- Returns:
- the value of the
sparserecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord component
-
expireAfterSeconds
Returns the value of theexpireAfterSecondsrecord component.- Returns:
- the value of the
expireAfterSecondsrecord component
-