Exemplo n.º 1
0
 /**
  * @return the root domain alias--never null
  *     <p>In a 3-level inheritance hierarchy, this would be the 1st level.
  */
 public final Alias<? super T> getRootClassAlias() {
   Alias<? super T> current = this;
   while (current.getBaseClassAlias() != null) {
     current = current.getBaseClassAlias();
   }
   return current;
 }
Exemplo n.º 2
0
 /**
  * @return the root domain class--never null
  *     <p>In a 3-level inheritance hierarchy, this would be the 1st level.
  */
 public Class<? super T> getDomainRootClass() {
   Alias<? super T> current = this;
   while (current.getBaseClassAlias() != null) {
     current = current.getBaseClassAlias();
   }
   return current.getDomainClass();
 }