T
@FunctionalInterface public static interface Range.Stepper<T>
1、步进规则,即对象如何做步进 2、步进大小,通过实现此接口,在实现类中定义一个对象属性,可灵活定义步进大小 3、限制range个数,通过实现此接口,在实现类中定义一个对象属性,可灵活定义limit,限制range个数
step(T current, T end, int index)
null
T step(T current, T end, int index)
current
end
index
Copyright © 2023. All rights reserved.