de.unikassel.android.sdcframework.preferences.facade
Interface DevicePreferencesCollection

Package class diagram package DevicePreferencesCollection
All Known Implementing Classes:
DevicePreferencesCollectionImpl

public interface DevicePreferencesCollection

Interface for a collection of device preferences.


Method Summary
 boolean addPreferences(SensorDevicePreferences preferences)
          Method to add device preferences to the composition
 Collection<SensorDevicePreferences> getPreferences()
          Getter for all device preferences
 SensorDevicePreferences getPreferencesForDevice(SensorDeviceIdentifier deviceIdentifier)
          Getter for specific device preferences
 void removeAll()
          Does remove all stored device preferences
 

Method Detail

addPreferences

boolean addPreferences(SensorDevicePreferences preferences)
Method to add device preferences to the composition

Parameters:
preferences - the preferences to add
Returns:
true if successful, false otherwise

getPreferences

Collection<SensorDevicePreferences> getPreferences()
Getter for all device preferences

Returns:
the preferences collection of the composite type

getPreferencesForDevice

SensorDevicePreferences getPreferencesForDevice(SensorDeviceIdentifier deviceIdentifier)
Getter for specific device preferences

Parameters:
deviceIdentifier - the device identifier
Returns:
the preferences for the device with the given identifier

removeAll

void removeAll()
Does remove all stored device preferences