Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
clearAll()
Clears all data from the storage.
|
static void |
init(android.content.Context context)
Initializes the storage.
|
static MachineIdStorage |
machineId()
Provides an instance of
MachineIdStorage |
static Storage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static VisitorInfoStorage |
visitorInfo()
Provides an instance of
VisitorInfoStorage |
public static final Storage INSTANCE
public static Storage[] values()
for (Storage c : Storage.values()) System.out.println(c);
public static Storage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void init(android.content.Context context)
context
- A context which will be used to initialise the storage@NonNull public static MachineIdStorage machineId()
MachineIdStorage
If Storage
has not been initialized first this will return dummy storage implementation.
@NonNull public static VisitorInfoStorage visitorInfo()
VisitorInfoStorage
If Storage
has not been initialized first this will return mocked storage implementation.
public void clearAll()
This will clear the data in MachineIdStorage
and VisitorInfoStorage
implementations