Class UserQueryList.SelectorItem
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.UserQueryList.SelectorItem
-
- Enclosing class:
- UserQueryList
public static class UserQueryList.SelectorItem extends java.lang.Object
This class represents an Overpass query used by the user that can be shown withinUserQueryList
.
-
-
Constructor Summary
Constructors Constructor Description SelectorItem(java.lang.String key, java.lang.String query)
Constructs a newSelectorItem
.SelectorItem(java.lang.String key, java.lang.String query, java.time.LocalDateTime lastEdit)
Constructs a newSelectorItem
.
-
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()
-
-
-
Constructor Detail
-
SelectorItem
public SelectorItem(java.lang.String key, java.lang.String query)
Constructs a newSelectorItem
.- Parameters:
key
- The key of this item.query
- The query of the item.- Throws:
java.lang.NullPointerException
- if any parameter isnull
.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 newSelectorItem
.- 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 isnull
.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-