Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xdrop authored Nov 1, 2018
1 parent 6fd184e commit 3b22e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ FuzzySearch.extractSorted("goolge", ["google", "bing", "facebook", "linkedin", "
[(string: google, score: 83, index: 0), (string: googleplus, score: 63, index: 5), (string: plexoogl, score: 43, index: 7)]
```

#### Extract using any object
`extractOne` and related methods can receive `Collection<T>` and produce `BoundExtractedResult<T>`
```java
List<Foo> foo = ...;
BoundExtractedResult<Foo> match = FuzzySearch.extractOne("cowboys", foo, x -> x.toString());
Foo matchFoo = match.getReferent();
```
## Credits

- seatgeek
Expand Down

0 comments on commit 3b22e53

Please # to comment.