T - protected static class TemplateBase.__Itr<T> extends Object implements Iterable<T>
The helper class to facilitate generating code for the “for” loop in the template source
| Modifier and Type | Field and Description |
|---|---|
protected Object |
_o |
protected int |
_size |
protected int |
cursor |
protected Iterator<T> |
iterator |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected Object _o
protected int _size
protected int cursor
public static <T> TemplateBase.__Itr<T> valueOf(T[] ta)
public static TemplateBase.__Itr<Integer> valueOf(int[] ta)
public static TemplateBase.__Itr<Long> valueOf(long[] ta)
public static TemplateBase.__Itr<Float> valueOf(float[] ta)
public static TemplateBase.__Itr<Double> valueOf(double[] ta)
public static TemplateBase.__Itr<Short> valueOf(short[] ta)
public static TemplateBase.__Itr<Character> valueOf(char[] ta)
public static TemplateBase.__Itr<Byte> valueOf(byte[] ta)
public static TemplateBase.__Itr<Boolean> valueOf(boolean[] ta)
public static <T extends Comparable<T>> TemplateBase.__Itr<T> ofRange(Range range)
@Deprecated public static <T extends Comparable<T>> TemplateBase.__Itr<T> valueOf(Range<T> range)
This will cause the famous “The method XX is ambiguous for the type YY” issue on Java 8 compiler. So use ofRange(Range) instead
public static TemplateBase.__Itr of(Object obj)
@Deprecated public static TemplateBase.__Itr valueOf(Object obj)
Use of(Object) instead
public static <T> TemplateBase.__Itr<T> ofIterable(Iterable<T> tc)
@Deprecated public static <T> TemplateBase.__Itr valueOf(Iterable<T> tc)
use ofIterable(Iterable) instead
public static <T> TemplateBase.__Itr<T> ofEnumeration(Enumeration<T> e)
@Deprecated public static <T> TemplateBase.__Itr valueOf(Enumeration<T> enu)
Use ofEnumeration(Enumeration) instead
public int size()
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.