public interface Iterable<T>
Known subtypesBannerAd, VisionCameraView, ARView, CameraView, Accordion, Ads, AudioRecorderComponent, ButtonList, ChatBubble, ChatInput, ChatView, CheckBoxList, ClearableTextField, FileTree, FloatingHint, InteractionDialog, MediaPlayer, MultiButton, OnOffSwitch, OtpField, PhoneNumberField, PhoneVerification, Progress, RadioButtonList, SignatureComponent, SpanButton, SpanLabel, SpanMultiButton, SplitPane, StickyHeaderContainer, SwitchList, WebBrowser, GameView, GameSceneView, RenderView, GeofenceManager, LocationButton, MapComponent, MapView, NativeMap, CollectionProperty, ListProperty, MapProperty, PropertyIndex, SetProperty, TestRunnerComponent, AbstractEditorComponent, AutoCompleteTextComponent, BrowserComponent, Calendar, CodeEditor, ComponentGroup, ComponentSelector, Container, Dialog, Form, InfiniteContainer, InputComponent, InterFormContainer, MenuBar, PickerComponent, RichTextArea, Sheet, SideMenuBar, SwipeableContainer, Tabs, TextComponent, TextComponentPassword, TextSelection.Span, TextSelection.Spans, Toolbar, Window, HTMLComponent, HTMLElement, ContainerList, Scene, BaseSpinner, DateSpinner, DateTimeSpinner, GenericSpinner, NumericSpinner, TimeSpinner, Table, Tree, EmbeddedContainer, Media360View, VRView, Element, AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayDeque, ArrayList, Collection, Deque, HashSet, LinkedHashSet, LinkedList, List, NavigableSet, PriorityQueue, Queue, Set, SortedSet, Stack, TreeSet, Vector
foreach statement.Methods
public abstract Iterator<T> iterator() | Returns an Iterator for the elements in this object. |
public default void forEach(Consumer<? super T> action) | Performs the given action for each element of the Iterable. |
Method details
iterator
public abstract Iterator<T> iterator()Iterator for the elements in this object.Returns
Iterator instance.forEach
public default void forEach(Consumer<? super T> action)Iterable.
Stubbed in the CLDC11 subset; the actual implementation comes
from the platform’s JDK at runtime.