/*
- * Copyright 2016-2017 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2016-2017,2021 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
*
import android.graphics.Bitmap;
-// Create a `History` object.
+// Create a History object.
public class History {
- // Create the `History` package-local variables.
- public Bitmap entryFavoriteIcon;
- public String entryUrl;
+ // Declare the class variables.
+ public final Bitmap favoriteIcon;
+ public final String url;
- public History(Bitmap entryFavoriteIcon, String entryUrl){
- // Populate the package-local variables.
- this.entryFavoriteIcon = entryFavoriteIcon;
- this.entryUrl = entryUrl;
+ public History(Bitmap favoriteIcon, String url){
+ // Populate the class variables.
+ this.favoriteIcon = favoriteIcon;
+ this.url = url;
}
}
\ No newline at end of file