mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-16 21:01:10 +08:00
25 lines
468 B
Java
25 lines
468 B
Java
package com.mysema.query.sql;
|
|
|
|
import java.util.Map;
|
|
|
|
import com.mysema.query.sql.RelationalPath;
|
|
|
|
/**
|
|
* Beans contains a list of beans
|
|
*
|
|
* @author luis
|
|
*/
|
|
public class Beans {
|
|
|
|
private final Map<? extends RelationalPath<?>, ?> beans;
|
|
|
|
public Beans(Map<? extends RelationalPath<?>, ?> beans) {
|
|
this.beans = beans;
|
|
}
|
|
|
|
@SuppressWarnings("unchecked")
|
|
public <T> T get(RelationalPath<T> path) {
|
|
return (T) beans.get(path);
|
|
}
|
|
|
|
} |