Class SettingSearchResult

java.lang.Object
com.saperion.settings.SettingSearchResult
All Implemented Interfaces:
Serializable

public class SettingSearchResult extends Object implements Serializable
Represents the result of a search for settings.
See Also:
  • Constructor Details

    • SettingSearchResult

      public SettingSearchResult(List<Setting> settings)
      Creates a new SettingSearchResult.
      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

      public Setting getUnique()
      Returns:
      the one setting found when the result is unique
    • getAll

      public List<Setting> getAll()
      Returns:
      all found settings
    • getCount

      public int getCount()
      Returns:
      how many settings were found