package com.reactnativenavigation.parse.params;

import com.reactnativenavigation.parse.Param;

public class Bool extends Param<Boolean> {
    public Bool(Boolean value) {
        super(value);
    }

    public boolean isFalseOrUndefined() {
        return !hasValue() || !get();
    }

    public boolean isTrueOrUndefined() {
        return !hasValue() || get();
    }

    public boolean isTrue() {
        return hasValue() && get();
    }

    public boolean isFalse() {
        return hasValue() && get();
    }
}

package com.reactnativenavigation.parse.params;

import com.reactnativenavigation.parse.Param;

public class Bool extends Param<Boolean> {
    public Bool(Boolean value) {
        super(value);
    }

    public boolean isFalseOrUndefined() {
        return !hasValue() || !get();
    }

    public boolean isTrueOrUndefined() {
        return !hasValue() || get();
    }

    public boolean isTrue() {
        return hasValue() && get();
    }

    public boolean isFalse() {
        return hasValue() && !get();
    }
}

Fix Bool.isFalse