Package one.xingyi.core.client
Interface ISimpleList<T>
-
- All Superinterfaces:
java.lang.Iterable<T>
- All Known Subinterfaces:
IResourceList<T>
- All Known Implementing Classes:
JsonResourceList,MirroredResourceList
public interface ISimpleList<T> extends java.lang.Iterable<T>
-
-
Field Summary
Fields Modifier and Type Field Description static ISimpleList<java.lang.Object>empty
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ISimpleList<T>append(T t)static <T> ISimpleList<T>create(T... ts)static <T> ISimpleList<T>empty()static <T> ISimpleList<T>fromList(java.util.List<T> ts)Tget(int n)intsize()default java.util.List<T>toList()ISimpleList<T>withItem(int n, T t)
-
-
-
Field Detail
-
empty
static final ISimpleList<java.lang.Object> empty
-
-
Method Detail
-
empty
static <T> ISimpleList<T> empty()
-
size
int size()
-
get
T get(int n)
-
withItem
ISimpleList<T> withItem(int n, T t)
-
append
ISimpleList<T> append(T t)
-
toList
default java.util.List<T> toList()
-
create
@SafeVarargs static <T> ISimpleList<T> create(T... ts)
-
fromList
static <T> ISimpleList<T> fromList(java.util.List<T> ts)
-
-