litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.litesoft.core.typeutils;
public class Longs extends Numerics
{
public static Long assertNonNegative( String pName, Long pValue )
throws IllegalArgumentException
{
if ( pValue != null )
{
assertNonNegative( pName, pValue.longValue() );
}
return pValue;
}
public static long assertNonNegative( String pName, long pValue )
throws IllegalArgumentException
{
if ( pValue < 0 )
{
throw new IllegalArgumentException( pName + CANNOT_BE_NEGATIVE + ", but was: " + pValue );
}
return pValue;
}
}
|
Revision |
Author |
Commited |
Message |
821
|
GeorgeS
|
Sun 19 Aug, 2012 00:08:41 +0000 |
|