public abstract class

LazyConfig

extends Object
java.lang.Object
   ↳ masonamerica.platform.utils.LazyConfig<T>

Class Overview

A synchronized class to get a config value based on config type

Summary

Constants
String RESOURCES_APP
Fields
public static Resources sResources
Public Constructors
LazyConfig()
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

Constants

public static final String RESOURCES_APP

Constant Value: "com.bymason.res"

Fields

public static Resources sResources

Public Constructors

public LazyConfig ()

Public Methods

public abstract T get (Context context)

Parameters
context Context
Returns
T

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
Returns
T