# Interface Iterable<T>

All Known Subinterfaces:
  `Collection<E>, Deque<E>, List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>`

All Known Implementing Classes:
  `AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, Accordion, Ads, ArrayDeque, ArrayList, AudioRecorderComponent, AutoCompleteTextComponent, BaseSpinner, BrowserComponent, ButtonList, Calendar, ChatBubble, ChatInput, ChatView, CheckBoxList, ClearableTextField, CollectionProperty, ComponentGroup, ComponentSelector, Container, ContainerList, DateSpinner, DateTimeSpinner, Dialog, Element, EmbeddedContainer, FileTree, FloatingHint, Form, GenericSpinner, GeofenceManager, HashSet, HTMLComponent, HTMLElement, InfiniteContainer, InputComponent, InteractionDialog, InterFormContainer, LinkedHashSet, LinkedList, ListProperty, MapComponent, MapProperty, MediaPlayer, MenuBar, MultiButton, NumericSpinner, OnOffSwitch, OtpField, PickerComponent, PriorityQueue, Progress, PropertyIndex, RadioButtonList, Scene, SetProperty, Sheet, SideMenuBar, SignatureComponent, SpanButton, SpanLabel, SpanMultiButton, SplitPane, Stack, StickyHeaderContainer, SwipeableContainer, SwitchList, Table, Tabs, TestRunnerComponent, TextComponent, TextComponentPassword, TextSelection.Span, TextSelection.Spans, TimeSpinner, Toolbar, Tree, TreeSet, Vector, WebBrowser`

public interface Iterable<T>

Objects of classes that implement this interface can be used within a `foreach` statement.

##### Since

1.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Iterator<T>`
  `iterator()`
  Returns an `Iterator` for the elements in this object.

- ## Method Details

  - ### iterator

    Iterator<T> iterator()

    Returns an `Iterator` for the elements in this object.

    ###### Returns

    An `Iterator` instance.