Code example for ArrayList

Methods: contains

0
        } 
    } 
 
    @Implementation 
    public static Typeface createFromFile(String path) {
        if (fontPaths.contains(path)) {
            Typeface typeface = Robolectric.newInstanceOf(Typeface.class);
            shadowOf(typeface).setAssetPath(path);
            return typeface;
        } 
        throw new RuntimeException("Font not found");
    } 
 
    public String getAssetPath() {
        return assetPath;
    } 
 
    public void setAssetPath(String assetPath) {
        this.assetPath = assetPath;
    }