Class UserQueryList.SelectorItem
java.lang.Object
org.openstreetmap.josm.gui.download.UserQueryList.SelectorItem
- Enclosing class:
- UserQueryList
This class represents an Overpass query used by the user that can be
shown within
UserQueryList.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelectorItem(String key, String query) Constructs a newSelectorItem.SelectorItem(String key, String query, LocalDateTime lastEdit) Constructs a newSelectorItem. -
Method Summary
-
Field Details
-
itemKey
-
query
-
lastEdit
-
-
Constructor Details
-
SelectorItem
Constructs a newSelectorItem.- Parameters:
key- The key of this item.query- The query of the item.- Throws:
NullPointerException- if any parameter isnull.IllegalArgumentException- if any parameter is empty.
-
SelectorItem
Constructs a newSelectorItem.- Parameters:
key- The key of this item.query- The query of the item.lastEdit- The latest when the item was- Throws:
NullPointerException- if any parameter isnull.IllegalArgumentException- if any parameter is empty.
-
-
Method Details
-
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
Gets the query of this item.- Returns:
- A string representing the query of this item.
-
getLastEdit
Gets the latest date time when the item was created/changed.- Returns:
- The latest date time when the item was created/changed.
-
hashCode
-
equals
-