FileDocCategorySizeDatePackage
LinkedHashMap_Delegate.javaAPI DocAndroid 5.1 API1344Thu Mar 12 22:22:44 GMT 2015com.android.tools.layoutlib.java

LinkedHashMap_Delegate

public class LinkedHashMap_Delegate extends Object
Provides alternate implementation to java.util.LinkedHashMap#eldest(), which is present as a non-public method in the Android VM, but not present on the host VM. This is injected in the layoutlib using {@link ReplaceMethodCallsAdapter}.

Fields Summary
Constructors Summary
Methods Summary
public static java.util.Map.Entryeldest(java.util.LinkedHashMap map)

        Iterator<Entry<K, V>> iterator = map.entrySet().iterator();
        return iterator.hasNext() ? iterator.next() : null;