Class CollectionUtils
- java.lang.Object
-
- io.github.scarecraw22.utils.collection.CollectionUtils
-
public class CollectionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CollectionUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidapplyForEach(Collection<T> collection, Consumer<T> consumer)<T> booleanhasSize(Collection<T> collection, int expectedSize)<T> booleanisEmpty(Collection<T> collection)<T> booleanisNotEmpty(Collection<T> collection)
-
-
-
Method Detail
-
isEmpty
public <T> boolean isEmpty(Collection<T> collection)
-
isNotEmpty
public <T> boolean isNotEmpty(Collection<T> collection)
-
hasSize
public <T> boolean hasSize(Collection<T> collection, int expectedSize)
-
applyForEach
public <T> void applyForEach(Collection<T> collection, Consumer<T> consumer)
-
-