Skip to content

Add "notEqual" checks and validators #3

@kennedykori

Description

@kennedykori

Add checks and validators for checking or ensuring that a numeric value is not equal to a given base value. The checkers should be preferably named notEqual and the validators should be preferably named requireNotEqual.

Example usage of notEqual

public int someMethod(int value) {
    if (notEqual(this.someBaseValue, value))
        return value;
    else
        return 0;
}

Example usage of requireNotEqual

public void setSomeValue(int value) {
    this.someValue = requireNotEqual(this.someBaseValue, value);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions