java.lang.Object
dev.qilletni.api.CollectionUtility
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA record representing a key-value pair. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T> createList(int size, T value) Creates a list of a given size, filled with references of a given value.static <K,V> List <CollectionUtility.Entry<K, V>> getRecordEntries(Map<K, V> map) Gets a list of entries from a map.
-
Constructor Details
-
CollectionUtility
public CollectionUtility()
-
-
Method Details
-
getRecordEntries
Gets a list of entries from a map.- Type Parameters:
K- The type of the keys in the mapV- The type of the values in the map- Parameters:
map- The map to get the entries from- Returns:
- The list of entries in the map
-
createList
Creates a list of a given size, filled with references of a given value.- Type Parameters:
T- The type of the value to fill the list with- Parameters:
size- The size of the list to createvalue- The value to fill the list with- Returns:
- The list of references to the given value
-