Class UserQueryList.SelectorItem
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.UserQueryList.SelectorItem
-
- Enclosing class:
- UserQueryList
public static class UserQueryList.SelectorItem extends Object
This class represents an Overpass query used by the user that can be shown withinUserQueryList
.
-
-
Constructor Summary
Constructors Constructor Description SelectorItem(String key, String query)
Constructs a newSelectorItem
.SelectorItem(String key, String query, LocalDateTime lastEdit)
Constructs a newSelectorItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getKey()
Gets the key (a string that is displayed in the selector) of this item.LocalDateTime
getLastEdit()
Gets the latest date time when the item was created/changed.String
getQuery()
Gets the query of this item.int
hashCode()
-
-
-
Constructor Detail
-
SelectorItem
public SelectorItem(String key, String query)
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
public SelectorItem(String key, String query, LocalDateTime lastEdit)
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 Detail
-
getKey
public 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 String getQuery()
Gets the query of this item.- Returns:
- A string representing the query of this item.
-
getLastEdit
public LocalDateTime getLastEdit()
Gets the latest date time when the item was created/changed.- Returns:
- The latest date time when the item was created/changed.
-
-