Package com.teamdev.jxbrowser.search
Class FindOptions.Builder
java.lang.Object
com.teamdev.jxbrowser.search.FindOptions.Builder
- Enclosing interface:
- FindOptions
A builder of
FindOptions
.
Builders are created by invoking FindOptions.newBuilder()
. Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newFindOptions
instance built from the current state of this builder.matchCase
(boolean matchCase) Specifies whether the search is case-sensitive.searchBackward
(boolean searchBackward) Specifies whether the search is performed backward.
-
Method Details
-
matchCase
Specifies whether the search is case-sensitive.- Parameters:
matchCase
- the flag value- Returns:
- this builder
-
searchBackward
Specifies whether the search is performed backward.- Parameters:
searchBackward
- the flag value- Returns:
- this builder
-
build
Returns a newFindOptions
instance built from the current state of this builder.- Returns:
- a new
FindOptions
instance
-