Class SettingSearchResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class SettingSearchResult
    extends java.lang.Object
    implements java.io.Serializable
    Represents the result of a search for settings.
    See Also:
    Serialized Form
    • Constructor Detail

      • SettingSearchResult

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