Class CollectionOperations


  • public class CollectionOperations
    extends java.lang.Object
    Defines basic collection operations. This cannot be done in Collection as it is an interface.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • CollectionOperations

        public CollectionOperations()
    • Method Detail

      • isEquals

        public static boolean isEquals​(Collection<?> c1,
                                       Collection<?> c2)
        Defines the equality operation based on Collection.isEquals(Collection).
        Parameters:
        c1 - the first collection to be compared
        c2 - the second collection to be compared
        Returns:
        true if both collections are considered to be equal, false else
      • isNotEquals

        public static boolean isNotEquals​(Collection<?> c1,
                                          Collection<?> c2)
        Defines the unequality operation based on Collection.isEquals(Collection).
        Parameters:
        c1 - the first collection to be compared
        c2 - the second collection to be compared
        Returns:
        true if both collections are considered not to be equal, false else