Esempio n. 1
0
 public ModuleActivator activateApplicationModule(Module module, Container applicationScope) {
   modules.add(module);
   activate(
       module,
       applicationScope,
       Sequences.<Class<? extends Module>>sequence(ModuleDefiner.class)
           .join(applicationModuleClasses));
   return this;
 }
Esempio n. 2
0
 public static <T> LogicalPredicate<T> in(final Iterable<? extends T> iterable) {
   if (Sequences.isEmpty(iterable)) return never();
   return new InPredicate<T>(Unchecked.<Iterable<T>>cast(iterable));
 }
Esempio n. 3
0
 @multimethod
 public boolean equals(InPredicate other) {
   return Sequences.equalTo(values(), other.values());
 }
Esempio n. 4
0
 @SafeVarargs
 public static <T> LogicalPredicate<T> in(final T... items) {
   return in(Sequences.sequence(items));
 }