de.unikassel.android.sdcframework.util
Class ExternalStorageStateChangeEventImpl

Package class diagram package ExternalStorageStateChangeEventImpl
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.ExternalStorageStateChangeEventImpl
All Implemented Interfaces:
ExternalStorageStateChangeEvent, ObservableEvent

public class ExternalStorageStateChangeEventImpl
extends Object
implements ExternalStorageStateChangeEvent


Nested Class Summary
static class ExternalStorageStateChangeEventImpl.State
          Internal state representation for external storage availability
 
Field Summary
private  ExternalStorageStateChangeEventImpl.State state
          The current availability state
 
Constructor Summary
ExternalStorageStateChangeEventImpl(ExternalStorageStateChangeEventImpl.State state)
          Constructor
 
Method Summary
 boolean isExternalStorageAvailableForRead()
          Test method if external storage is available for read access
 boolean isExternalStorageAvailableForWrite()
          Test method if external storage is available for write access
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

private final ExternalStorageStateChangeEventImpl.State state
The current availability state

Constructor Detail

ExternalStorageStateChangeEventImpl

public ExternalStorageStateChangeEventImpl(ExternalStorageStateChangeEventImpl.State state)
Constructor

Parameters:
state - the current availability state
Method Detail

isExternalStorageAvailableForRead

public boolean isExternalStorageAvailableForRead()
Description copied from interface: ExternalStorageStateChangeEvent
Test method if external storage is available for read access

Specified by:
isExternalStorageAvailableForRead in interface ExternalStorageStateChangeEvent
Returns:
true if available for read access

isExternalStorageAvailableForWrite

public boolean isExternalStorageAvailableForWrite()
Description copied from interface: ExternalStorageStateChangeEvent
Test method if external storage is available for write access

Specified by:
isExternalStorageAvailableForWrite in interface ExternalStorageStateChangeEvent
Returns:
true if available for write access