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

tw.yukina.notion.sdk.model.common.EmptyObject Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package tw.yukina.notion.sdk.model.common;

import lombok.EqualsAndHashCode;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;

@EqualsAndHashCode
public class EmptyObject {

    private static EmptyObject emptyObject;

    @NotNull
    @Contract(value = " -> new", pure = true)
    public static EmptyObject of(){
        if(emptyObject == null){
            emptyObject = new EmptyObject();
        }
        return emptyObject;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy