Java 类org.codehaus.jackson.map.util.LRUMap 实例源码

项目:ingress-indonesia-dev    文件:av.java   
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;
  }
}
项目:narrate-android    文件:PaletteLoader.java   
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);
}
项目:leopard    文件:MapThreadSafetyAssertIntegrationTest.java   
@Test
public void LRUMap() {
    Map<String, String> map = new LRUMap<String, String>(10, 1000000);
    MapThreadSafetyAssert.check(map);
}
项目:leopard    文件:MapThreadSafetyAssertIntegrationTest.java   
@Test
public void synchronizedLRUMap() {
    Map<String, String> map = new LRUMap<String, String>(10, 1000000);
    MapThreadSafetyAssert.check(Collections.synchronizedMap(map));
}
项目:leopard    文件:MapThreadSafetyAssertIntegrationTest.java   
@Test
public void apacheLRUMap() {
    @SuppressWarnings("unchecked")
    Map<String, String> map = new org.apache.commons.collections.map.LRUMap();
    MapThreadSafetyAssert.check(map);
}