Class IndexModel


  • public class IndexModel
    extends Object
    • Constructor Detail

      • IndexModel

        public IndexModel()
        Default constructor
      • IndexModel

        public IndexModel​(JsonObject json)
        Json constructor
        Parameters:
        json - - the json object
    • Method Detail

      • getKey

        public JsonObject getKey()
        Get the index key
        Returns:
        - the index keys
      • setKey

        public IndexModel setKey​(JsonObject key)
        Sets the index key
        Parameters:
        key - - the index keys
        Returns:
        this for fluency
      • getOptions

        public IndexOptions getOptions()
        Get the index options
        Returns:
        - the index options
      • setOptions

        public IndexModel setOptions​(IndexOptions options)
        Sets the index options
        Parameters:
        options - - the index options
        Returns:
        this for fluency
      • toJson

        public JsonObject toJson()
        Convert to JSON
        Returns:
        the JSON
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object