Esempio n. 1
0
 public static void visitView(
     ViewDataVisitorContained viewDataVisitor, Object groupkey, Object subviewHolder) {
   if (subviewHolder == null) {
     return;
   }
   if (subviewHolder instanceof View) {
     viewDataVisitor.visitContained(groupkey, (View) subviewHolder);
     return;
   }
   if (subviewHolder instanceof Collection) {
     Collection<View> deque = (Collection<View>) subviewHolder;
     for (View view : deque) {
       viewDataVisitor.visitContained(groupkey, view);
       return;
     }
   }
 }
Esempio n. 2
0
 public void visitViewContainer(ViewDataVisitorContained viewDataVisitor) {
   viewDataVisitor.visitPrimary(VIEWNAME, subViewsPerKey.size());
   for (Map.Entry<Object, Object> entry : subViewsPerKey.entrySet()) {
     GroupByViewImpl.visitView(viewDataVisitor, entry.getKey(), entry.getValue());
   }
 }