Exemplo n.º 1
0
 /**
  * Returns a {@link RelationshipExpander} wrapped as an {@link Expander}.
  *
  * @param expander {@link RelationshipExpander} to wrap.
  * @return a {@link RelationshipExpander} wrapped as an {@link Expander}.
  */
 public static Expander expander(RelationshipExpander expander) {
   if (expander instanceof Expander) {
     return (Expander) expander;
   }
   return StandardExpander.wrap(expander);
 }
Exemplo n.º 2
0
 public static Expander expander(PathExpander expander) {
   if (expander instanceof Expander) {
     return (Expander) expander;
   }
   return StandardExpander.wrap(expander);
 }