// Path: app/src/main/java/com/amsen/par/cewlrency/model/Currency.java
// public class Currency implements Comparable<Currency> {
//     public static final String BASE_ID = "SEK";
//     private String id;
//     private double rate;
//     private java.util.Currency currency;
// 
//     public Currency(String id, double rate, java.util.Currency currency) {
//         this.id = id;
//         this.rate = rate;
//         this.currency = currency;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public double getRate() {
//         return rate;
//     }
// 
//     public void setRate(double rate) {
//         this.rate = rate;
//     }
// 
//     public java.util.Currency getCurrency() {
//         return currency;
//     }
// 
//     public void setCurrency(java.util.Currency currency) {
//         this.currency = currency;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         Currency currency = (Currency) o;
// 
//         return id.equals(currency.id);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         return id.hashCode();
//     }
// 
//     @Override
//     public int compareTo(@NonNull  Currency o) {
//         return id.compareTo(o.getId());
//     }
// }


import com.amsen.par.cewlrency.model.Currency;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.inject.Inject;
import rx.Observable;
    }

    @Override
    public Observable<Currency> get(String id) {
        return Observable.create(subscriber -> {
            Currency currency = storage.get(id);

            if (currency != null) {
                subscriber.onNext(currency);
            }

            subscriber.onCompleted();
        });
    }

    @Override
    public Observable<List<Currency>> getAll() {
        return Observable.create(subscriber -> {
            ArrayList<Currency> list = new ArrayList<>(storage.values());

            if (!list.isEmpty()) {
                subscriber.onNext(list);
            }

            subscriber.onCompleted();
        });
    }

    @Override
    public void invalidate() {
// Path: app/src/main/java/com/amsen/par/cewlrency/model/Currency.java
// public class Currency implements Comparable<Currency> {
//     public static final String BASE_ID = "SEK";
//     private String id;
//     private double rate;
//     private java.util.Currency currency;
// 
//     public Currency(String id, double rate, java.util.Currency currency) {
//         this.id = id;
//         this.rate = rate;
//         this.currency = currency;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public double getRate() {
//         return rate;
//     }
// 
//     public void setRate(double rate) {
//         this.rate = rate;
//     }
// 
//     public java.util.Currency getCurrency() {
//         return currency;
//     }
// 
//     public void setCurrency(java.util.Currency currency) {
//         this.currency = currency;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         Currency currency = (Currency) o;
// 
//         return id.equals(currency.id);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         return id.hashCode();
//     }
// 
//     @Override
//     public int compareTo(@NonNull  Currency o) {
//         return id.compareTo(o.getId());
//     }
// }


// Path: app/src/main/java/com/amsen/par/cewlrency/persistence/currency/MockStorage.java
import com.amsen.par.cewlrency.model.Currency;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.inject.Inject;
import rx.Observable;

    }

    @Override
    public Observable<Currency> get(String id) {
        return Observable.create(subscriber -> {
            Currency currency = storage.get(id);

            if (currency != null) {
                subscriber.onNext(currency);
            }

            subscriber.onCompleted();
        });
    }

    @Override
    public Observable<List<Currency>> getAll() {
        return Observable.create(subscriber -> {
            ArrayList<Currency> list = new ArrayList<>(storage.values());

            if (!list.isEmpty()) {
                subscriber.onNext(list);
            }

            subscriber.onCompleted();
        });
    }

    @Override
    public void invalidate() {
        storage.clear();