-
public final class RangeExtensions
-
-
Method Summary
Modifier and Type Method Description final static LongProgressiondownUntil(Long $self, Byte until)final static IntProgressiondownUntil(Byte $self, Byte until)final static IntProgressiondownUntil(Short $self, Byte until)final static CharProgressiondownUntil(Character $self, Character until)final static IntProgressiondownUntil(Integer $self, Integer until)final static LongProgressiondownUntil(Long $self, Integer until)final static IntProgressiondownUntil(Byte $self, Integer until)final static IntProgressiondownUntil(Short $self, Integer until)final static LongProgressiondownUntil(Integer $self, Long until)final static LongProgressiondownUntil(Long $self, Long until)final static LongProgressiondownUntil(Byte $self, Long until)final static LongProgressiondownUntil(Short $self, Long until)final static IntProgressiondownUntil(Integer $self, Short until)final static LongProgressiondownUntil(Long $self, Short until)final static IntProgressiondownUntil(Byte $self, Short until)final static IntProgressiondownUntil(Short $self, Short until)final static <T extends Comparable<T>, R extends Comparable<R>> ClosedRange<R>map(ClosedRange<T> $self, Function1<T, R> transform)final static FloatcoerceIn(Float $self)限定在0和1之间。 final static DoublecoerceIn(Double $self)限定在0和1之间。 final static <T extends Comparable<T>> Pair<T, T>toPair(ClosedRange<T> $self)将范围转化为二元素元组。 final static IntRangetoCircledRange(IntRange $self, Integer length)将范围转化为基于指定长度的循环范围。即,当上限或下限为负数时,尝试将其加上指定长度。 -
-
Method Detail
-
downUntil
final static LongProgression downUntil(Long $self, Byte until)
-
downUntil
final static IntProgression downUntil(Byte $self, Byte until)
-
downUntil
final static IntProgression downUntil(Short $self, Byte until)
-
downUntil
final static CharProgression downUntil(Character $self, Character until)
-
downUntil
final static IntProgression downUntil(Integer $self, Integer until)
-
downUntil
final static LongProgression downUntil(Long $self, Integer until)
-
downUntil
final static IntProgression downUntil(Byte $self, Integer until)
-
downUntil
final static IntProgression downUntil(Short $self, Integer until)
-
downUntil
final static LongProgression downUntil(Integer $self, Long until)
-
downUntil
final static LongProgression downUntil(Long $self, Long until)
-
downUntil
final static LongProgression downUntil(Byte $self, Long until)
-
downUntil
final static LongProgression downUntil(Short $self, Long until)
-
downUntil
final static IntProgression downUntil(Integer $self, Short until)
-
downUntil
final static LongProgression downUntil(Long $self, Short until)
-
downUntil
final static IntProgression downUntil(Byte $self, Short until)
-
downUntil
final static IntProgression downUntil(Short $self, Short until)
-
map
final static <T extends Comparable<T>, R extends Comparable<R>> ClosedRange<R> map(ClosedRange<T> $self, Function1<T, R> transform)
-
toPair
final static <T extends Comparable<T>> Pair<T, T> toPair(ClosedRange<T> $self)
将范围转化为二元素元组。
-
toCircledRange
final static IntRange toCircledRange(IntRange $self, Integer length)
将范围转化为基于指定长度的循环范围。即,当上限或下限为负数时,尝试将其加上指定长度。
-
-
-
-