Groovy-getfrom
提供:Dev Guides
Groovy-getFrom()
この範囲の低い値を取得します。
構文
Comparable getFrom()
パラメーター
None
戻り値
範囲の低い値。
例
以下は、このメソッドの使用例です-
class Example {
static void main(String[] args) {
//Example of an Integer using def
def rint = 1..10;
println(rint.getFrom());
}
}
上記のプログラムを実行すると、次の結果が得られます-
1