Package | Description |
---|---|
org.ovirt.engine.core.utils.linq |
Modifier and Type | Class and Description |
---|---|
class |
All<T>
Created by IntelliJ IDEA.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
LinqUtils.filter(Collection<T> collection,
Predicate<T> predicate)
Replaces LINQ WHERE
Returns list containing all objects from original collection that matches the predicate
|
static <T> T |
LinqUtils.firstOrNull(Collection<T> collection,
Predicate<T> predicate)
Replaces firstOrDefault() LINQ
Returns first object from the collection that matches the predicate, or null if no such object was found
|
Copyright © 2012. All Rights Reserved.