
* reduce visibility * remove unused methods and members * Suppress unused warnings we can ignore * fixed or ignored deprecation warnings * Changed HistoryItem to have better hashcode and equals implementations and removed id member from it as it was unnecessary * Fix performance problem with loading bookmarksettingsfragment and properly annotate bookmarklocalsync
32 lines
823 B
Java
32 lines
823 B
Java
package acr.browser.lightning.reading;
|
|
|
|
import org.jsoup.nodes.Element;
|
|
|
|
/**
|
|
* Class which encapsulates the data from an image found under an element
|
|
*
|
|
* @author Chris Alexander, chris@chris-alexander.co.uk
|
|
*/
|
|
class ImageResult {
|
|
|
|
private final String src;
|
|
public final Integer weight;
|
|
private final String title;
|
|
private final int height;
|
|
private final int width;
|
|
private final String alt;
|
|
private final boolean noFollow;
|
|
public Element element;
|
|
|
|
public ImageResult(String src, Integer weight, String title, int height, int width, String alt,
|
|
boolean noFollow) {
|
|
this.src = src;
|
|
this.weight = weight;
|
|
this.title = title;
|
|
this.height = height;
|
|
this.width = width;
|
|
this.alt = alt;
|
|
this.noFollow = noFollow;
|
|
}
|
|
}
|