public abstract class LoopTyme extends AbstractTyme
| 限定符 | 构造器和说明 |
|---|---|
protected |
LoopTyme(String[] names,
int index)
通过索引初始化
|
protected |
LoopTyme(String[] names,
String name)
通过名称初始化
|
protected String[] names
protected int index
protected LoopTyme(String[] names, int index)
names - 名称列表index - 索引,支持负数,自动轮转public String getName()
public int getIndex()
public int getSize()
protected int indexOf(String name)
name - 名称protected int indexOf(int index)
index - 索引protected int nextIndex(int n)
n - 推移步数Copyright © 2024. All Rights Reserved.