[]
        
立即试用
(Showing Draft Content)

IItemCollection

Interface IItemCollection

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
IDropDownItemList, IItemList<T>, IListBoxItemCollection, IListBoxItemList

public interface IItemCollection<T> extends Iterable<T>
保存构成ISelector内容的项目集合。
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T newItem)
    向集合中添加一个项。
    void
    清除集合并释放集合中所有当前项的引用。
    boolean
    contains(T containItem)
    返回一个值,表示指定的项是否在此视图中。
    int
    获取集合中的记录数。
    boolean
    remove(T removeItem)
    从集合或视图中移除指定的项引用。

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getCount

      int getCount()
      获取集合中的记录数。
    • add

      void add(T newItem)
      向集合中添加一个项。
      Parameters:
      newItem - 要添加到集合中的项。
    • clear

      void clear()
      清除集合并释放集合中所有当前项的引用。
    • contains

      boolean contains(T containItem)
      返回一个值,表示指定的项是否在此视图中。
      Parameters:
      containItem - 要检查的对象。
      Returns:
      true 表示该项属于此集合并通过了活动筛选器;否则返回 false
    • remove

      boolean remove(T removeItem)
      从集合或视图中移除指定的项引用。
      Parameters:
      removeItem - 要移除的对象。
      Returns:
      如果成功移除项,则返回 true;否则返回 false