public class UpCastRule
extends Object
Constructor and Description |
---|
UpCastRule() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canUpCast(DataType from,
DataType to)
Returns true iff we can safely up-cast the
from type to to type without any truncating or
precision lose or possible runtime failures. |
static scala.collection.immutable.IndexedSeq<NumericType> |
numericPrecedence() |
public static scala.collection.immutable.IndexedSeq<NumericType> numericPrecedence()
public static boolean canUpCast(DataType from, DataType to)
from
type to to
type without any truncating or
precision lose or possible runtime failures. For example, long to int, string to int are not
up-casts.from
- (undocumented)to
- (undocumented)