类 ItemsRange


  • public class ItemsRange
    extends Object
    Range for visible items.
    • 构造器详细资料

      • ItemsRange

        public ItemsRange()
        Default constructor. Creates an empty range
      • ItemsRange

        public ItemsRange​(int first,
                          int count)
        Constructor
        参数:
        first - the number of first item
        count - the count of items
    • 方法详细资料

      • getFirst

        public int getFirst()
        Gets number of first item
        返回:
        the number of the first item
      • getLast

        public int getLast()
        Gets number of last item
        返回:
        the number of last item
      • getCount

        public int getCount()
        Get items count
        返回:
        the count of items
      • contains

        public boolean contains​(int index)
        Tests whether item is contained by range
        参数:
        index - the item number
        返回:
        true if item is contained