test 4 spaces formatting
diff --git a/src/main/java/de/ids_mannheim/korap/query/DistanceConstraint.java b/src/main/java/de/ids_mannheim/korap/query/DistanceConstraint.java
index 11e330b..6a0668f 100644
--- a/src/main/java/de/ids_mannheim/korap/query/DistanceConstraint.java
+++ b/src/main/java/de/ids_mannheim/korap/query/DistanceConstraint.java
@@ -1,78 +1,89 @@
package de.ids_mannheim.korap.query;
-/** Specify distance constraints in SpanDistanceQueries or
- * SpanMultipleDistanceQueries
- *
- * @author margaretha
+/**
+ * Specify distance constraints in SpanDistanceQueries or
+ * SpanMultipleDistanceQueries
+ *
+ *
+ *
+ * @author margaretha
* */
public class DistanceConstraint {
- private int minDistance, maxDistance;
- private String unit;
- private SpanElementQuery elementQuery;
- private boolean exclusion;
- private boolean isOrdered;
-
- public DistanceConstraint(int min, int max, boolean isOrdered, boolean exclusion) {
- this.unit = "w";
- this.minDistance = min;
- this.maxDistance = max;
- this.isOrdered = isOrdered;
- this.exclusion = exclusion;
- }
-
- public DistanceConstraint(SpanElementQuery elementQuery, int min, int max, boolean
- isOrdered, boolean exclusion) {
- if (elementQuery == null){
- throw new IllegalArgumentException("Element query cannot be null.");
- }
-
- this.unit = elementQuery.getElementStr();
- this.minDistance = min;
- this.maxDistance = max;
- this.isOrdered = isOrdered;
- this.exclusion = exclusion;
- this.elementQuery = elementQuery;
- }
-
- public int getMinDistance() {
- return minDistance;
- }
- public void setMinDistance(int minDistance) {
- this.minDistance = minDistance;
- }
- public int getMaxDistance() {
- return maxDistance;
- }
- public void setMaxDistance(int maxDistance) {
- this.maxDistance = maxDistance;
- }
- public String getUnit() {
- return unit;
- }
- public void setUnit(String unit) {
- this.unit = unit;
- }
- public SpanElementQuery getElementQuery() {
- return elementQuery;
- }
- public void setElementQuery(SpanElementQuery elementQuery) {
- this.elementQuery = elementQuery;
- }
+ private int minDistance, maxDistance;
+ private String unit;
+ private SpanElementQuery elementQuery;
+ private boolean exclusion;
+ private boolean isOrdered;
- public boolean isExclusion() {
- return exclusion;
- }
+ public DistanceConstraint(int min, int max, boolean isOrdered,
+ boolean exclusion) {
+ this.unit = "w";
+ this.minDistance = min;
+ this.maxDistance = max;
+ this.isOrdered = isOrdered;
+ this.exclusion = exclusion;
+ }
- public void setExclusion(boolean exclusion) {
- this.exclusion = exclusion;
- }
+ public DistanceConstraint(SpanElementQuery elementQuery, int min, int max,
+ boolean isOrdered, boolean exclusion) {
+ if (elementQuery == null) {
+ throw new IllegalArgumentException("Element query cannot be null.");
+ }
- public boolean isOrdered() {
- return isOrdered;
- }
+ this.unit = elementQuery.getElementStr();
+ this.minDistance = min;
+ this.maxDistance = max;
+ this.isOrdered = isOrdered;
+ this.exclusion = exclusion;
+ this.elementQuery = elementQuery;
+ }
- public void setOrdered(boolean isOrdered) {
- this.isOrdered = isOrdered;
- }
+ public int getMinDistance() {
+ return minDistance;
+ }
+
+ public void setMinDistance(int minDistance) {
+ this.minDistance = minDistance;
+ }
+
+ public int getMaxDistance() {
+ return maxDistance;
+ }
+
+ public void setMaxDistance(int maxDistance) {
+ this.maxDistance = maxDistance;
+ }
+
+ public String getUnit() {
+ return unit;
+ }
+
+ public void setUnit(String unit) {
+ this.unit = unit;
+ }
+
+ public SpanElementQuery getElementQuery() {
+ return elementQuery;
+ }
+
+ public void setElementQuery(SpanElementQuery elementQuery) {
+ this.elementQuery = elementQuery;
+ }
+
+ public boolean isExclusion() {
+ return exclusion;
+ }
+
+ public void setExclusion(boolean exclusion) {
+ this.exclusion = exclusion;
+ }
+
+ public boolean isOrdered() {
+ return isOrdered;
+ }
+
+ public void setOrdered(boolean isOrdered) {
+ this.isOrdered = isOrdered;
+ }
}