```
HashMap<LocalDate, String>

```

i have a ListView that contain strings (for example : "2014-05-10 example") and i want to delete the selected hashmap with 

```
hashmap.remove(LocalDate key, String value)

```

but i'm not sure how to get the key and value from a string

[Context](https://i.stack.imgur.com/vAri3.png)

my object is from a class called "Inv" :

```
public class Inv {
    private String name;
    private String category;
    private LocalDate date;
    private Double price;
    private String info;
    private HashMap<LocalDate, String> mapMain;

```

context: the object from the "Inv" class is something that you bought for example a car and the hashmap contain all the maintenances that has been done to the car.

can you please help ?