Class CollectionExtKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean isEmpty(Collection<?> $self) Checks whether given collection is empty.
      final static <T extends Any> Unit replaceAll(Collection<T> $self, Collection<T> otherCollection) Utility method for mutable collections.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isEmpty

         final static Boolean isEmpty(Collection<?> $self)

        Checks whether given collection is empty.

        Returns:

        true if the collection is empty or null, true otherwise

      • replaceAll

         final static <T extends Any> Unit replaceAll(Collection<T> $self, Collection<T> otherCollection)

        Utility method for mutable collections. It clears the given collection and adds the otherCollection

        Parameters:
        otherCollection - to replace the existing ones