All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.datahub.client.util.ValueCheckUtils Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.client.util;

import java.math.BigDecimal;

public abstract class ValueCheckUtils {
    public static boolean checkString(Object value) {
        return (value instanceof String);
    }

    public static boolean checkBigint(Object value) {
        return ((value instanceof Long) || (value instanceof Integer));
    }

    public static boolean checkDouble(Object value) {
        return (value instanceof Double);
    }

    public static boolean checkBoolean(Object value) {
        return (value instanceof Boolean);
    }

    public static boolean checkTimestamp(Object value) {
        return checkBigint(value);
    }

    public static boolean checkDecimal(Object value) {
        return (value instanceof BigDecimal);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy