// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package moddemo.mgr;

import moddemo.api.Dumper;
import moddemo.csv.impl.CsvDumper;

public class Manager {
    public static int getCount(Dumper dmp) {
        if(dmp instanceof CsvDumper) {
            return ((CsvDumper)dmp).getCount();
        } else {
            throw new RuntimeException("Oooops");
        }
    }
}
