made listmanagers enums
This commit is contained in:
@@ -4,15 +4,18 @@ import android.content.Context;
|
||||
|
||||
import com.a1.nextlocation.data.Coupon;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class CouponListManager {
|
||||
public enum CouponListManager {
|
||||
INSTANCE;
|
||||
|
||||
private List<Coupon> couponList;
|
||||
private Context context;
|
||||
|
||||
public CouponListManager(Context context){
|
||||
public void setContext(Context context) {
|
||||
this.context = context;
|
||||
this.couponList = new ArrayList<>();
|
||||
}
|
||||
|
||||
public List<Coupon> getCouponList() {
|
||||
|
||||
@@ -4,16 +4,18 @@ import android.content.Context;
|
||||
|
||||
import com.a1.nextlocation.data.Location;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class LocationListManager {
|
||||
public enum LocationListManager {
|
||||
INSTANCE;
|
||||
|
||||
private List<Location> locationList;
|
||||
private Context context;
|
||||
|
||||
public LocationListManager(Context context){
|
||||
public void setContext(Context context) {
|
||||
this.context = context;
|
||||
|
||||
this.locationList = new ArrayList<>();
|
||||
}
|
||||
|
||||
public List<Location> getLocationList() {
|
||||
|
||||
@@ -4,17 +4,21 @@ import android.content.Context;
|
||||
|
||||
import com.a1.nextlocation.data.Route;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class RouteListManager{
|
||||
public enum RouteListManager{
|
||||
INSTANCE;
|
||||
|
||||
private List<Route> routeList;
|
||||
private Context context;
|
||||
|
||||
public RouteListManager(Context context){
|
||||
public void setContext(Context context) {
|
||||
this.context = context;
|
||||
this.routeList = new ArrayList<>();
|
||||
}
|
||||
|
||||
|
||||
public List<Route> getRouteList() {
|
||||
return routeList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user