AI2 Component  (Version nb184)
YailObject.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2019-2020 MIT, All rights reserved
3 // Released under the Apache License, Version 2.0
4 // http://www.apache.org/licenses/LICENSE-2.0
5 
6 package com.google.appinventor.components.runtime.util;
7 
8 import androidx.annotation.NonNull;
9 
10 import java.util.Iterator;
11 
19 public interface YailObject<T> extends Iterable<T> {
20 
30  Object getObject(int index);
31 
40  int size();
41 
47  boolean isEmpty();
48 
53  @NonNull
54  Iterator<T> iterator();
55 }
com.google.appinventor.components.runtime.util.YailObject.size
int size()
com.google.appinventor.components.runtime.util.YailObject.isEmpty
boolean isEmpty()
com.google.appinventor.components.runtime.util.YailObject.getObject
Object getObject(int index)
com.google.appinventor.components.runtime.util.YailObject.iterator
Iterator< T > iterator()
com.google.appinventor.components.runtime.util.YailObject
Definition: YailObject.java:19