Package com.saperion.settings
Class SettingSearchResult
- java.lang.Object
-
- com.saperion.settings.SettingSearchResult
-
- All Implemented Interfaces:
java.io.Serializable
public class SettingSearchResult extends java.lang.Object implements java.io.SerializableRepresents the result of a search for settings.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SettingSearchResult(java.util.List<Setting> settings)Creates a newSettingSearchResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfound()java.util.List<Setting>getAll()intgetCount()SettinggetUnique()booleanunique()
-
-
-
Constructor Detail
-
SettingSearchResult
public SettingSearchResult(java.util.List<Setting> settings)
Creates a newSettingSearchResult.- Parameters:
settings- the settings that were found
-
-
Method Detail
-
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
public Setting getUnique()
- Returns:
- the one setting found when the result is unique
-
getAll
public java.util.List<Setting> getAll()
- Returns:
- all found settings
-
getCount
public int getCount()
- Returns:
- how many settings were found
-
-