java.lang.Object |
↳ |
masonamerica.platform.utils.LazyConfig<T> |
Class Overview
A synchronized class to get a config value
based on config type
Summary
Public Methods |
abstract
T
|
get(Context context)
|
static
Resources
|
getAppResources(Context context)
Get an application Resources based on Context
|
Protected Methods |
T
|
getValue(Context context, String type, String id, BiFunction<Resources, Integer, T> resource)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
String
RESOURCES_APP
Constant Value:
"com.bymason.res"
Fields
public
static
Resources
sResources
Public Constructors
Public Methods
public
abstract
T
get
(Context context)
Parameters |
context |
Context |
public
static
Resources
getAppResources
(Context context)
Get an application Resources based on Context
Returns |
Resources |
resources of the application
|
Protected Methods
protected
T
getValue
(Context context, String type, String id, BiFunction<Resources, Integer, T> resource)
Parameters |
context |
Context |
type |
String |
id |
String |
resource |
BiFunction |