Skip to content

Commit

Permalink
refactored class naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitish1814 committed Jan 1, 2025
1 parent e446fdc commit 52ee716
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CacheBasedHashFunctionUtility<D, R, C, T> implements IHashFunctionU
private static final String DELIMITER = ":";

public CacheBasedHashFunctionUtility() {
this.hashFunctionsInCurrentNodePath = new HashSet<>();
this.hashFunctionsInCurrentNodePath = new HashSet<String>();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.opencsv.exceptions.CsvException;
import zingg.common.core.block.model.Customer;
import zingg.common.core.block.model.CustomerDupe;
import zingg.common.core.util.IDataReader;

import java.io.IOException;
import java.net.URISyntaxException;
Expand All @@ -11,9 +12,9 @@

public class DataUtility {

private final DataReader dataReader;
private final IDataReader dataReader;

public DataUtility(DataReader dataReader) {
public DataUtility(IDataReader dataReader) {
this.dataReader = dataReader;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.opencsv.CSVReader;
import com.opencsv.CSVReaderBuilder;
import com.opencsv.exceptions.CsvException;
import zingg.common.core.block.data.ICsvReader;

import java.io.File;
import java.io.FileNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package zingg.common.core.block.data;
package zingg.common.core.util;

import zingg.common.core.util.IFromCsv;
import java.io.FileNotFoundException;
import java.util.List;

public interface ICsvReader extends DataReader {
public interface ICsvReader extends IDataReader {
List<? extends IFromCsv> getRecords(String file, boolean skipHeader) throws FileNotFoundException;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package zingg.common.core.block.data;
package zingg.common.core.util;

import com.opencsv.exceptions.CsvException;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

public interface DataReader {
public interface IDataReader {
List<String[]> readDataFromSource(String source) throws IOException, CsvException, URISyntaxException;
}

0 comments on commit 52ee716

Please sign in to comment.