Package com.saperion.settings
Class SettingSearchResult
java.lang.Object
com.saperion.settings.SettingSearchResult
- All Implemented Interfaces:
Serializable
Represents the result of a search for settings.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSettingSearchResult
(List<Setting> settings) Creates a newSettingSearchResult
. -
Method Summary
-
Constructor Details
-
SettingSearchResult
Creates a newSettingSearchResult
.- Parameters:
settings
- the settings that were found
-
-
Method Details
-
found
public boolean found()- Returns:
- true if at least one setting was found
-
unique
public boolean unique()- Returns:
- true if exactly one setting was found
-
getUnique
- Returns:
- the one setting found when the result is unique
-
getAll
- Returns:
- all found settings
-
getCount
public int getCount()- Returns:
- how many settings were found
-