public interface LocationRepository
| Modifier and Type | Method and Description |
|---|---|
Location |
createLocation(Coordinates coordinates,
String description)
Create a location with a unique ID.
|
Optional<Location> |
find(long locationId)
Find a location by its ID.
|
List<Location> |
locations()
Get all locations.
|
void |
removeAll()
Remove all locations from the repository.
|
Location |
removeLocation(long id)
Remove a location with the given ID.
|
Location createLocation(Coordinates coordinates, String description)
coordinates - location's coordinatesdescription - description of the locationLocation removeLocation(long id)
id - location IDvoid removeAll()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.