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

xyz.block.ftl.deployment.DefaultOptionalBuildItem Maven / Gradle / Ivy

There is a newer version: 0.415.1
Show newest version
package xyz.block.ftl.deployment;

import io.quarkus.builder.item.SimpleBuildItem;

/**
 * Build item that indicates if a type with no nullability information should default to optional.
 *
 * This is different between Kotlin and Java
 */
public final class DefaultOptionalBuildItem extends SimpleBuildItem {
    final boolean defaultToOptional;

    public DefaultOptionalBuildItem(boolean defaultToOptional) {
        this.defaultToOptional = defaultToOptional;
    }

    public boolean isDefaultToOptional() {
        return defaultToOptional;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy