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

com.mysema.rdfbean.query.Constants Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 *
 */
package com.mysema.rdfbean.query;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import com.mysema.rdfbean.model.UID;
import com.mysema.rdfbean.model.XSD;

/**
 * @author tiwe
 * 
 */
final class Constants {

    public static final Set decimalTypes = asSet(XSD.decimalType, XSD.doubleType, XSD.floatType);

    public static final Set integerTypes = asSet(XSD.integerType, XSD.longType, XSD.intType, XSD.shortType, XSD.byteType);

    public static final Set dateTypes = Collections.singleton(XSD.date);

    public static final Set dateTimeTypes = Collections.singleton(XSD.dateTime);

    private static  Set asSet(T... args) {
        return new HashSet(Arrays.asList(args));
    }

    private Constants() {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy