/** * Sub class to override this method to return a set * of annotation classes that marks on an entity(model) class * @return entity class annotations */ public Set<Class<? extends Annotation>> entityAnnotations() { return C.set(); }
/** * Returns a set of `ClassNode` that has been annotated by the annotation * class represented by this `ClassNode` * @return the annotated class node set */ public Set<ClassNode> annotatedClasses() { return C.set(annotated); }
/** * Returns a set of class node that annotated the class represented by this * `ClassNode` * @return the annotation class node set */ public Set<ClassNode> annotations() { return C.set(annotations); }
@Override public C.Set<T> with(T element) { return C.set(v, element); }
/** * Sub class to override this method to return a set * of annotation classes that marks on an entity(model) class * @return entity class annotations */ public Set<Class<? extends Annotation>> entityAnnotations() { return C.set(); }
/** * Returns a set of `ClassNode` that has been annotated by the annotation * class represented by this `ClassNode` * @return the annotated class node set */ public Set<ClassNode> annotatedClasses() { return C.set(annotated); }
/** * Returns a set of class node that annotated the class represented by this * `ClassNode` * @return the annotation class node set */ public Set<ClassNode> annotations() { return C.set(annotations); }
@Override public Set convert(Iterable iterable) { return iterable instanceof Set ? (Set) iterable : C.set(iterable); } };
@Override public Set convert(Iterable iterable) { return iterable instanceof Set ? (Set) iterable : C.set(iterable); } };
@Override public C.Set<T> with(T element) { return C.set(element); }
private Set<String> prependContext(C.Set<String> paths) { return C.set(paths.map(new $.F1<String, String>() { @Override public String apply(String s) throws NotAppliedException, $.Break { return context + s; } })); }
@Override public C.Set<T> with(T element, T... elements) { return C.set(v).with(element, elements); }
private Set<String> prependContext(C.Set<String> paths) { return C.set(paths.map(new $.F1<String, String>() { @Override public String apply(String s) throws NotAppliedException, $.Break { return context + s; } })); }
public void batchDelete(Collection<String> keys) { Set<String> set = C.set(keys); for (String key : set) { ss.remove(key); } }
/** * Returns all model classes registered on this datasource * * @return model classes talk to this datasource */ public Set<Class> entityClasses() { EntityMetaInfoRepo repo = app().entityMetaInfoRepo().forDb(id); return null == repo ? C.<Class>set() : repo.entityClasses(); }
public static <T> Set<T> interceptionOf(Collection<? extends T> col1, Collection<? extends T> col2, Collection<? extends T> col3, Collection<? extends T>... otherCols) { Set<T> interception = C.newSet(col1); interception.retainAll(col2); interception.retainAll(col3); for (Collection<? extends T> col : otherCols) { interception.retainAll(col); } return C.set(interception); }
public static <T> Set<T> interceptionOf(Collection<? extends T> col1, Collection<? extends T> col2, Collection<? extends T> col3, Collection<? extends T>... otherCols) { Set<T> interception = C.newSet(col1); interception.retainAll(col2); interception.retainAll(col3); for (Collection<? extends T> col : otherCols) { interception.retainAll(col); } return C.set(interception); }
public static <T> Set<T> unionOf(Collection<? extends T> col1, Collection<? extends T> col2, Collection<? extends T> col3, Collection<? extends T> ... otherCols) { Set<T> union = C.newSet(col1); union.addAll(col2); union.addAll(col3); for (Collection<? extends T> col : otherCols) { union.addAll(col); } return C.set(union); }
/** * Returns all model classes registered on this datasource * * @return model classes talk to this datasource */ public Set<Class> entityClasses() { EntityMetaInfoRepo repo = app().entityMetaInfoRepo().forDb(id); return null == repo ? C.<Class>set() : repo.entityClasses(); }
public static <T> Set<T> unionOf(Collection<? extends T> col1, Collection<? extends T> col2, Collection<? extends T> col3, Collection<? extends T> ... otherCols) { Set<T> union = C.newSet(col1); union.addAll(col2); union.addAll(col3); for (Collection<? extends T> col : otherCols) { union.addAll(col); } return C.set(union); }