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

org.cloudfoundry.multiapps.controller.process.variables.Variable Maven / Gradle / Ivy

There is a newer version: 1.183.0
Show newest version
package org.cloudfoundry.multiapps.controller.process.variables;

import java.lang.reflect.Type;

import org.cloudfoundry.multiapps.common.Nullable;

import com.fasterxml.jackson.core.type.TypeReference;

public interface Variable {

    static  TypeReference typeReference(Class classOfT) {
        if (classOfT == null) {
            throw new NullPointerException();
        }
        return new TypeReference() {
            @Override
            public Type getType() {
                return classOfT;
            }
        };
    }

    String getName();

    @Nullable
    T getDefaultValue();

    Serializer getSerializer();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy