cdd / bioassay-template

Other
7 stars 2 forks source link

Additional utility functions #132

Closed gedeck closed 4 years ago

gedeck commented 4 years ago

Util.removeIf(T[] arr, (T) -> boolean), e.g. remove all elements from list that are greater than 4. Only implemented for Object based arrays

Util.arrayRemoveIf(arr, (n) -> n > 4))

This is the array analogue to the List.removeIf method

Util.equal(T obj1, T obj2), useful when obj1 or obj2 could be null.

Util.equals((Test)null, (Test)null)