Package com.tagtraum.beatunes.library
Class HibernateMultiLoad
- java.lang.Object
-
- com.tagtraum.beatunes.library.HibernateMultiLoad
-
public final class HibernateMultiLoad extends Object
HibernateMultiLoad.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K extends Serializable,T>
List<T>fixOrder(Function<T,K> idFunction, List<T> objects, List<K> ids)
Orders the given list according to the ids.static <K extends Serializable,T>
List<T>fixOrder(Function<T,K> idFunction, List<T> objects, K... ids)
Orders the given list according to the ids.
-
-
-
Method Detail
-
fixOrder
public static <K extends Serializable,T> List<T> fixOrder(Function<T,K> idFunction, List<T> objects, List<K> ids)
Orders the given list according to the ids.- Type Parameters:
T
- object type- Parameters:
idFunction
- object to idobjects
- object listids
- ordered ids- Returns:
- ordered list of objects
-
fixOrder
public static <K extends Serializable,T> List<T> fixOrder(Function<T,K> idFunction, List<T> objects, K... ids)
Orders the given list according to the ids.- Type Parameters:
T
- object type- Parameters:
idFunction
- object to idobjects
- object listids
- ordered ids- Returns:
- ordered list of objects
-
-