-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d29ce11
commit 3aa8a7c
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
src/main/java/liqp/filters/date/fuzzy/extractors/PartExtractorResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package liqp.filters.date.fuzzy.extractors; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PartExtractorResult { | ||
public PartExtractorResult(){} | ||
public PartExtractorResult(List<String> formatterPatterns){ | ||
this.formatterPatterns = formatterPatterns; | ||
} | ||
public PartExtractorResult(String formatterPattern){ | ||
this.formatterPattern = formatterPattern; | ||
this.formatterPatterns = new ArrayList<>(); | ||
this.formatterPatterns.add(formatterPattern); | ||
} | ||
|
||
public boolean found; | ||
public int start; | ||
public int end; | ||
public String formatterPattern; | ||
public List<String> formatterPatterns; | ||
} |