de.unikassel.android.sdcframework.preferences
Class TimeProviderConfigurationImpl

Package class diagram package TimeProviderConfigurationImpl
java.lang.Object
  extended by de.unikassel.android.sdcframework.preferences.TimeProviderConfigurationImpl
All Implemented Interfaces:
Configuration, TimeProviderConfiguration, UpdatableConfiguration<TimeProviderConfiguration>

public class TimeProviderConfigurationImpl
extends Object
implements TimeProviderConfiguration

The implementation of the NTP time provider configuration.


Field Summary
private  TimeProviderErrorStrategyDescription errorStrategy
          The time provider sync error strategy description.
private  List<String> providers
          The NTP time provider list
 
Constructor Summary
private TimeProviderConfigurationImpl()
          Constructor
  TimeProviderConfigurationImpl(List<String> providers, TimeProviderErrorStrategyDescription errorStrategy)
          Constructor
 
Method Summary
 boolean equals(Object o)
           
 TimeProviderErrorStrategyDescription getErrorStrategyDescription()
          Getter for the error strategy description
 List<String> getProviders()
          Getter for the NTP time provider list
 void setErrorStrategyDescription(TimeProviderErrorStrategyDescription errorStrategy)
          Setter for the error strategy
 void setProviders(List<String> providers)
          Setter for the provider list
 void update(TimeProviderConfiguration configuration)
          Does update this configuration by another configuration
 void update(TimeProviderConfigurationEntries config)
          Method to update the time provider configuration by configuration file entries.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providers

private List<String> providers
The NTP time provider list


errorStrategy

private TimeProviderErrorStrategyDescription errorStrategy
The time provider sync error strategy description.

Constructor Detail

TimeProviderConfigurationImpl

private TimeProviderConfigurationImpl()
Constructor


TimeProviderConfigurationImpl

public TimeProviderConfigurationImpl(List<String> providers,
                                     TimeProviderErrorStrategyDescription errorStrategy)
Constructor

Parameters:
providers - the NTP time provider list
errorStrategy - the error strategy
Method Detail

getProviders

public List<String> getProviders()
Description copied from interface: TimeProviderConfiguration
Getter for the NTP time provider list

Specified by:
getProviders in interface TimeProviderConfiguration
Returns:
the NTP time provider list

setProviders

public void setProviders(List<String> providers)
Setter for the provider list

Parameters:
providers - the provider list to set

setErrorStrategyDescription

public void setErrorStrategyDescription(TimeProviderErrorStrategyDescription errorStrategy)
Setter for the error strategy

Parameters:
errorStrategy - the error strategy to set

update

public void update(TimeProviderConfiguration configuration)
Description copied from interface: UpdatableConfiguration
Does update this configuration by another configuration

Specified by:
update in interface UpdatableConfiguration<TimeProviderConfiguration>
Parameters:
configuration - the configuration to update from

update

public void update(TimeProviderConfigurationEntries config)
Description copied from interface: TimeProviderConfiguration
Method to update the time provider configuration by configuration file entries.

Specified by:
update in interface TimeProviderConfiguration
Parameters:
config - the NTP time provider configuration entries

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getErrorStrategyDescription

public TimeProviderErrorStrategyDescription getErrorStrategyDescription()
Description copied from interface: TimeProviderConfiguration
Getter for the error strategy description

Specified by:
getErrorStrategyDescription in interface TimeProviderConfiguration
Returns:
the error strategy description