MediaQuery instances that is used to deduplicate media queries. More specifically,
this cache ensures that only a single instance of any distinct media query exists at any point in time.
This cache holds weak references, ensuring that media queries that are no longer in use will be eligible
for garbage collection.
| Modifier and Type | Field and Description |
|---|---|
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static synchronized <T extends MediaQuery> T |
| CACHE | back to summary |
|---|---|
| private static final Map<MediaQuery, WeakReference<MediaQuery>> CACHE | |
| MediaQueryCache | back to summary |
|---|---|
| private MediaQueryCache() | |
| getCachedMediaQuery | back to summary |
|---|---|
public static synchronized <T extends MediaQuery> T getCachedMediaQuery(T query)
| |