public av(long paramLong, bw parambw) { an.a(bool); if (paramLong > 0L); while (true) { an.a(bool); this.e = TimeUnit.NANOSECONDS.convert(paramLong, TimeUnit.SECONDS); this.b = new LRUMap(0, 3); this.c = new LRUMap(0, 3); this.d = new LRUMap(0, 3); this.f = ((bw)an.a(parambw)); return; bool = false; } }
public static PaletteBuilder with(Context context, String string) { if (colorSchemeCache == null){ colorSchemeCache = Collections.synchronizedMap( new LRUMap<String, Palette>(0, MAX_ITEMS_IN_CACHE) ); } if (uiHandler == null || backgroundHandler == null) { setupHandlers(context); } return new PaletteBuilder(string); }
@Test public void LRUMap() { Map<String, String> map = new LRUMap<String, String>(10, 1000000); MapThreadSafetyAssert.check(map); }
@Test public void synchronizedLRUMap() { Map<String, String> map = new LRUMap<String, String>(10, 1000000); MapThreadSafetyAssert.check(Collections.synchronizedMap(map)); }
@Test public void apacheLRUMap() { @SuppressWarnings("unchecked") Map<String, String> map = new org.apache.commons.collections.map.LRUMap(); MapThreadSafetyAssert.check(map); }