Class ComparePrimitiveFacade


  • public class ComparePrimitiveFacade
    extends Object

    This class provides utilities for comparing primitive types.

    Author:
    Fugerit
    • Method Detail

      • compareInt

        public static boolean compareInt​(Integer target,
                                         Integer... value)

        Check if a target value is among one or more values.

        NOTE: if target is null returns always false.

        Parameters:
        target - the target value
        value - List of values to check
        Returns:
        true if target is among the values, false otherwise.