Package com.pointrlabs.core.util
Class CollectionExtKt
-
- All Implemented Interfaces:
public final class CollectionExtKt
-
-
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. -
-
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
-
-
-
-