Class UserQueryList.SelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String itemKey  
      private java.time.LocalDateTime lastEdit  
      private java.lang.String query  
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectorItem​(java.lang.String key, java.lang.String query)
      Constructs a new SelectorItem.
      SelectorItem​(java.lang.String key, java.lang.String query, java.time.LocalDateTime lastEdit)
      Constructs a new SelectorItem.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getKey()
      Gets the key (a string that is displayed in the selector) of this item.
      java.time.LocalDateTime getLastEdit()
      Gets the latest date time when the item was created/changed.
      java.lang.String getQuery()
      Gets the query of this item.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • itemKey

        private final java.lang.String itemKey
      • query

        private final java.lang.String query
      • lastEdit

        private final java.time.LocalDateTime lastEdit
    • Constructor Detail

      • SelectorItem

        public SelectorItem​(java.lang.String key,
                            java.lang.String query)
        Constructs a new SelectorItem.
        Parameters:
        key - The key of this item.
        query - The query of the item.
        Throws:
        java.lang.NullPointerException - if any parameter is null.
        java.lang.IllegalArgumentException - if any parameter is empty.
      • SelectorItem

        public SelectorItem​(java.lang.String key,
                            java.lang.String query,
                            java.time.LocalDateTime lastEdit)
        Constructs a new SelectorItem.
        Parameters:
        key - The key of this item.
        query - The query of the item.
        lastEdit - The latest when the item was
        Throws:
        java.lang.NullPointerException - if any parameter is null.
        java.lang.IllegalArgumentException - if any parameter is empty.
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Gets the key (a string that is displayed in the selector) of this item.
        Returns:
        A string representing the key of this item.
      • getQuery

        public java.lang.String getQuery()
        Gets the query of this item.
        Returns:
        A string representing the query of this item.
      • getLastEdit

        public java.time.LocalDateTime getLastEdit()
        Gets the latest date time when the item was created/changed.
        Returns:
        The latest date time when the item was created/changed.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object