本文整理匯總了Java中java.lang.Long.MIN_VALUE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Long.MIN_VALUE屬性的具體用法?Java Long.MIN_VALUE怎麽用?Java Long.MIN_VALUE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類java.lang.Long
的用法示例。
在下文中一共展示了Long.MIN_VALUE屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: test00Construction
public void test00Construction() {
long[] values = new long[] {
Long.MIN_VALUE,
-1L,
0L,
1L,
1000L,
1000000L,
1000000000L,
1000000000000L,
1000000000000000L,
1000000000000000000L,
Long.MAX_VALUE
};
Throttle gcra = new GenericCellRateAlgorithm();
System.out.println("gcra=" + gcra);
validateInitialState(gcra);
for (long increment : values) {
gcra = new GenericCellRateAlgorithm(increment);
System.out.println("i=" + increment + " gcra=" + gcra);
validateInitialState(gcra);
for (long limit : values)
{
gcra = new GenericCellRateAlgorithm(increment, limit);
System.out.println("i=" + increment + " l=" + limit + " gcra=" + gcra);
validateInitialState(gcra);
}
}
}
示例2: test00Construction
public void test00Construction() {
long[] values = new long[] {
Long.MIN_VALUE,
-1L,
0L,
1L,
1000L,
1000000L,
1000000000L,
1000000000000L,
1000000000000000L,
1000000000000000000L,
Long.MAX_VALUE
};
ExtendedThrottle ba = new BandwidthAlgorithm();
System.out.println("ba=" + ba);
validateInitialState(ba);
for (long increment : values) {
ba = new BandwidthAlgorithm(increment);
System.out.println("i=" + increment + " ba=" + ba);
validateInitialState(ba);
for (long limit : values)
{
ba = new BandwidthAlgorithm(increment, limit);
System.out.println("i=" + increment + " l=" + limit + " ba=" + ba);
validateInitialState(ba);
}
}
}