◆ GetOrElse< T >()
static T JUtils.CollectionExtensions.GetOrElse< T > |
( |
this ICollection< T > |
self, |
|
|
int |
index, |
|
|
T |
defaultValue |
|
) |
| |
|
inlinestatic |
Try get the element at that index, else return the defaultValue
◆ IsEmpty< T >()
static bool JUtils.CollectionExtensions.IsEmpty< T > |
( |
this ICollection< T > |
self | ) |
|
|
inlinestatic |
Returns true if the collection is empty
◆ IsEmptyOrNull< T >()
static bool JUtils.CollectionExtensions.IsEmptyOrNull< T > |
( |
this ICollection< T > |
self | ) |
|
|
inlinestatic |
Check if the collection is empty or null
◆ IsNotEmpty< T >()
static bool JUtils.CollectionExtensions.IsNotEmpty< T > |
( |
this ICollection< T > |
self | ) |
|
|
inlinestatic |
Returns true if the collection is filled
◆ IsNotEmptyOrNull< T >()
static bool JUtils.CollectionExtensions.IsNotEmptyOrNull< T > |
( |
this ICollection< T > |
self | ) |
|
|
inlinestatic |
Check if the collection is empty or null
◆ PopRandom< T >()
static T JUtils.CollectionExtensions.PopRandom< T > |
( |
this List< T > |
self | ) |
|
|
inlinestatic |
Pop a random item from the list
◆ Shuffle< T >()
static void JUtils.CollectionExtensions.Shuffle< T > |
( |
this IList< T > |
self | ) |
|
|
inlinestatic |
Shuffles an list or array without creating a new one
◆ TryPopRandom< T >()
static bool JUtils.CollectionExtensions.TryPopRandom< T > |
( |
this List< T > |
self, |
|
|
out T |
result |
|
) |
| |
|
inlinestatic |
Pop a random item from the list
The documentation for this class was generated from the following file: