IntSeg

org.beangle.commons.lang.math.IntSeg
See theIntSeg companion class
object IntSeg

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
IntSeg.type

Members list

Type members

Classlikes

class IntRange(var start: Int, var end: Int, var step: Int)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def assemble(ns: Iterable[Int]): Iterable[IntRange]

根据输入的数字序列,返回1-10,[2-10]双,[4-12]之类的分段区间

根据输入的数字序列,返回1-10,[2-10]双,[4-12]之类的分段区间

Attributes

Returns

如果输入的是null或者长度为0的数组,返回""

def digest(nums: Iterable[Int], strigula: String, sep: String): String
def parse(str: String): Iterable[Int]