public class SectionFinder extends Object implements SectionIndexer
| 构造器和说明 |
|---|
SectionFinder() |
| 限定符和类型 | 方法和说明 |
|---|---|
SectionFinder |
add(Object section,
Object... items)
Add items to given section
|
SectionFinder |
clear()
Clear all sections
|
int |
getPositionForSection(int section) |
protected Object |
getSection(Object item)
Get section for item
The default behavior is to use the first character from the item's
Object.toString() method |
int |
getSectionForPosition(int position) |
Object[] |
getSections() |
SectionFinder |
index(Object... items)
Index items by section returned from
getSection(Object) |
public SectionFinder clear()
protected Object getSection(Object item)
Object.toString() methoditem - public SectionFinder index(Object... items)
getSection(Object)items - public SectionFinder add(Object section, Object... items)
section - items - public int getPositionForSection(int section)
getPositionForSection 在接口中 SectionIndexerpublic int getSectionForPosition(int position)
getSectionForPosition 在接口中 SectionIndexerpublic Object[] getSections()
getSections 在接口中 SectionIndexer