public class AutoCompleteUtils extends Object
AutoCompleteTextField.getChoices(String)
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
contains(String search,
List<T> list)
Returns a sub list of items of type T having their textual representation (toString()) containing the search criteria
The max size of the sub list is MAX |
static <T> List<T> |
contains(String search,
List<T> list,
int max)
Returns a sub list of items of type T having their textual representation (toString()) containing the search criteria
|
static <T> List<T> |
startsWith(String search,
List<T> list)
Returns a sub list of items of type T having their textual representation (toString()) starting with the search criteria
The max size of the sub list is MAX |
static <T> List<T> |
startsWith(String search,
List<T> list,
int max)
Returns a sub list of items of type T having their textual representation (toString()) starting with the search criteria
|
public static <T> List<T> contains(String search, List<T> list)
MAX
T
- the typesearch
- search criterialist
- reference listpublic static <T> List<T> contains(String search, List<T> list, int max)
T
- the typesearch
- search criterialist
- reference listmax
- max size of the sub list to be returnedpublic static <T> List<T> startsWith(String search, List<T> list)
MAX
T
- the typesearch
- search criterialist
- reference listpublic static <T> List<T> startsWith(String search, List<T> list, int max)
T
- the typesearch
- search criterialist
- reference listmax
- max size of the sub list to be returnedCopyright © 2014 7thWeb. All Rights Reserved.