Example #1
0
 public final <T extends BeanElement> T wrap(Element element, Class<T> beanClass) {
   return beans.wrap(element, beanClass, this);
 }
Example #2
0
 public final <T extends BeanVertex> T createVertex(Class<T> beanClass) {
   Vertex vertex = graph.addVertex(null);
   return beans.wrap(vertex, beanClass, this);
 }
Example #3
0
 public final <T extends BeanElement> T wrap(@Nullable Element element, Class<T> beanClass) {
   return element != null ? beans.wrap(element, beanClass, this) : null;
 }