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

gsonpath.InheritableBoolean Maven / Gradle / Ivy

Go to download

An annotation processor which generates Type Adapters for the Google Gson library

There is a newer version: 4.0.0
Show newest version
package gsonpath;

/**
* Created due to a requirement to specify a boolean value on an annotation which may potentially
 * be replaced with a default value if the enum has specified that it inherits.
*/
public enum InheritableBoolean {
    TRUE(true, false),
    FALSE(false, false),
    TRUE_OR_INHERIT_DEFAULT_IF_AVAILABLE(true, true),
    FALSE_OR_INHERIT_DEFAULT_IF_AVAILABLE(false, true);

    public final boolean booleanValue;
    public final boolean inheritDefaultIfAvailable;

    InheritableBoolean(boolean booleanValue, boolean inheritDefaultIfAvailable) {
        this.booleanValue = booleanValue;
        this.inheritDefaultIfAvailable = inheritDefaultIfAvailable;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy