use of com.searchcode.app.dao.Data in project searchcode-server by boyter.
the class CommonRouteService method getMatchLines.
public static double getMatchLines() {
if (App.ISCOMMUNITY) {
return Double.parseDouble(Values.DEFAULTMATCHLINES);
}
Data data = Singleton.getData();
String matchLines = data.getDataByName(Values.MATCHLINES);
if (matchLines == null) {
data.saveData(Values.MATCHLINES, Values.DEFAULTMATCHLINES);
matchLines = Values.DEFAULTMATCHLINES;
}
return Double.parseDouble(matchLines);
}
use of com.searchcode.app.dao.Data in project searchcode-server by boyter.
the class CommonRouteService method getMinifiedLength.
public static double getMinifiedLength() {
if (App.ISCOMMUNITY) {
return Double.parseDouble(Values.DEFAULTMINIFIEDLENGTH);
}
Data data = Singleton.getData();
String minifiedLength = data.getDataByName(Values.MINIFIEDLENGTH);
if (minifiedLength == null) {
data.saveData(Values.MINIFIEDLENGTH, Values.DEFAULTMINIFIEDLENGTH);
minifiedLength = Values.DEFAULTMINIFIEDLENGTH;
}
return Double.parseDouble(minifiedLength);
}
Aggregations