Skip to content

Commit

Permalink
[ issue #47 ] First working draft of Facet Object Queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Gazzarini committed Apr 13, 2015
1 parent cf0ae2f commit 08d08a5
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 295 deletions.
5 changes: 5 additions & 0 deletions solrdf/src/main/java/org/gazzax/labs/solrdf/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ public static boolean isNotNullOrEmptyString(final String value) {
public static boolean isNullOrEmpty(final String value) {
return value == null || value.trim().length() == 0;
}

public static String round(final String numericStringValue) {
final int indexOfDot = numericStringValue.indexOf(".");
return indexOfDot != -1 ? numericStringValue.substring(0, indexOfDot) : numericStringValue;
}
}
Loading

0 comments on commit 08d08a5

Please sign in to comment.