de.unikassel.android.sdcframework.preferences
Class SensorDeviceConfigurationChangeEventImpl

Package class diagram package SensorDeviceConfigurationChangeEventImpl
java.lang.Object
  extended by de.unikassel.android.sdcframework.preferences.SensorDeviceConfigurationChangeEventImpl
All Implemented Interfaces:
ConfigurationChangeEvent<SensorDeviceConfiguration>, SensorDeviceConfigurationChangeEvent, ObservableEvent

public final class SensorDeviceConfigurationChangeEventImpl
extends Object
implements SensorDeviceConfigurationChangeEvent

Implementation of the sensor device configuration change event.

This class will be used by the configuration update visitor to transport the changed device configurations.


Field Summary
private  SensorDeviceConfiguration configuration
          The device configuration update
private  SensorDeviceIdentifier identifier
          The device identifier
 
Constructor Summary
private SensorDeviceConfigurationChangeEventImpl()
          Constructor
  SensorDeviceConfigurationChangeEventImpl(SensorDeviceConfiguration configuration, SensorDeviceIdentifier identifier)
          Constructor
 
Method Summary
 SensorDeviceConfiguration getConfiguration()
          Getter for the updated configuration, related to the Android preference
 SensorDeviceIdentifier getDeviceIdentifier()
          Getter for the sensor device identifier this update is for
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

private final SensorDeviceConfiguration configuration
The device configuration update


identifier

private final SensorDeviceIdentifier identifier
The device identifier

Constructor Detail

SensorDeviceConfigurationChangeEventImpl

private SensorDeviceConfigurationChangeEventImpl()
Constructor


SensorDeviceConfigurationChangeEventImpl

public SensorDeviceConfigurationChangeEventImpl(SensorDeviceConfiguration configuration,
                                                SensorDeviceIdentifier identifier)
Constructor

Parameters:
configuration - the device configuration
identifier - the device identifier
Method Detail

getDeviceIdentifier

public final SensorDeviceIdentifier getDeviceIdentifier()
Description copied from interface: SensorDeviceConfigurationChangeEvent
Getter for the sensor device identifier this update is for

Specified by:
getDeviceIdentifier in interface SensorDeviceConfigurationChangeEvent
Returns:
the sensor device identifier

getConfiguration

public final SensorDeviceConfiguration getConfiguration()
Description copied from interface: ConfigurationChangeEvent
Getter for the updated configuration, related to the Android preference

Specified by:
getConfiguration in interface ConfigurationChangeEvent<SensorDeviceConfiguration>
Returns:
the new configuration