java doc and readme update
This commit is contained in:
parent
3e586093ba
commit
da7a31f512
|
@ -27,3 +27,6 @@ These branches are for bugfixes.
|
||||||
|
|
||||||
These branches are for javadoc and project documentation (such as the readme, class diagrams etc.).
|
These branches are for javadoc and project documentation (such as the readme, class diagrams etc.).
|
||||||
|
|
||||||
|
|
||||||
|
## User Manual
|
||||||
|
- Search Plant List: if first Char is '#': only exact match in ID.
|
||||||
|
|
|
@ -99,7 +99,14 @@ public class PlantListModel {
|
||||||
return plantList;
|
return plantList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param zone selected hardiness zone
|
||||||
|
* @param searchString the string to search plant List, set '#' as first char the search by id.
|
||||||
|
* @return List of plants found in Plant List which contain the search String in the name or description
|
||||||
|
* @throws HardinessZoneNotSetException If no {@link HardinessZone} was specified
|
||||||
|
* @throws IOException If the database cannot be accessed
|
||||||
|
*/
|
||||||
public List<Plant> getFilteredPlantListByString(HardinessZone zone, String searchString) throws HardinessZoneNotSetException, IOException {
|
public List<Plant> getFilteredPlantListByString(HardinessZone zone, String searchString) throws HardinessZoneNotSetException, IOException {
|
||||||
if(searchString.charAt(0) == '#') {
|
if(searchString.charAt(0) == '#') {
|
||||||
try {
|
try {
|
||||||
|
@ -111,6 +118,4 @@ public class PlantListModel {
|
||||||
return getFilteredPlantList(zone, plant -> plant.name().contains(searchString) || plant.description().contains(searchString));
|
return getFilteredPlantList(zone, plant -> plant.name().contains(searchString) || plant.description().contains(searchString));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue