Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
eda7d8af
Commit
eda7d8af
authored
13 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Remove the Builder
Change-Id: Idef22e6a82d59e3ec95b95ad237debcb07daf000
parent
33cc8253
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/SuggestedWords.java
+2
-31
2 additions, 31 deletions
java/src/com/android/inputmethod/latin/SuggestedWords.java
with
2 additions
and
31 deletions
java/src/com/android/inputmethod/latin/SuggestedWords.java
+
2
−
31
View file @
eda7d8af
...
@@ -76,35 +76,6 @@ public class SuggestedWords {
...
@@ -76,35 +76,6 @@ public class SuggestedWords {
+
" mIsPunctuationSuggestions="
+
mIsPunctuationSuggestions
;
+
" mIsPunctuationSuggestions="
+
mIsPunctuationSuggestions
;
}
}
private
static
class
Builder
{
private
final
boolean
mTypedWordValid
;
private
final
boolean
mHasMinimalSuggestion
;
private
final
boolean
mIsPunctuationSuggestions
;
private
final
boolean
mShouldBlockAutoCorrectionBySafetyNet
;
private
final
boolean
mAllowsToBeAutoCorrected
;
private
final
List
<
SuggestedWordInfo
>
mSuggestedWordInfoList
;
private
Builder
(
final
List
<
SuggestedWordInfo
>
suggestedWordInfoList
,
final
boolean
typedWordValid
,
final
boolean
hasMinimalSuggestion
,
final
boolean
allowsToBeAutoCorrected
,
final
boolean
isPunctuationSuggestions
,
final
boolean
shouldBlockAutoCorrectionBySafetyNet
)
{
mSuggestedWordInfoList
=
suggestedWordInfoList
;
mTypedWordValid
=
typedWordValid
;
mHasMinimalSuggestion
=
hasMinimalSuggestion
;
mAllowsToBeAutoCorrected
=
allowsToBeAutoCorrected
;
mIsPunctuationSuggestions
=
isPunctuationSuggestions
;
mShouldBlockAutoCorrectionBySafetyNet
=
shouldBlockAutoCorrectionBySafetyNet
;
}
public
SuggestedWords
build
()
{
return
new
SuggestedWords
(
mSuggestedWordInfoList
,
mTypedWordValid
,
mHasMinimalSuggestion
,
mAllowsToBeAutoCorrected
,
mIsPunctuationSuggestions
,
mShouldBlockAutoCorrectionBySafetyNet
);
}
}
public
static
SuggestedWords
getSuggestedWords
(
public
static
SuggestedWords
getSuggestedWords
(
final
List
<
SuggestedWordInfo
>
suggestedWordInfoList
,
final
List
<
SuggestedWordInfo
>
suggestedWordInfoList
,
final
boolean
typedWordValid
,
final
boolean
typedWordValid
,
...
@@ -112,12 +83,12 @@ public class SuggestedWords {
...
@@ -112,12 +83,12 @@ public class SuggestedWords {
final
boolean
allowsToBeAutoCorrected
,
final
boolean
allowsToBeAutoCorrected
,
final
boolean
isPunctuationSuggestions
,
final
boolean
isPunctuationSuggestions
,
final
boolean
shouldBlockAutoCorrectionBySafetyNet
)
{
final
boolean
shouldBlockAutoCorrectionBySafetyNet
)
{
return
new
Builder
(
suggestedWordInfoList
,
return
new
SuggestedWords
(
suggestedWordInfoList
,
typedWordValid
,
typedWordValid
,
hasMinimalSuggestion
,
hasMinimalSuggestion
,
allowsToBeAutoCorrected
,
allowsToBeAutoCorrected
,
isPunctuationSuggestions
,
isPunctuationSuggestions
,
shouldBlockAutoCorrectionBySafetyNet
)
.
build
()
;
shouldBlockAutoCorrectionBySafetyNet
);
}
}
public
static
ArrayList
<
SuggestedWordInfo
>
getFromCharSequenceList
(
public
static
ArrayList
<
SuggestedWordInfo
>
getFromCharSequenceList
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment