/** * Creates the {@code EntitySet} wrapping an existing set. */ public static EntitySet of(Set<? extends Entity> entities) { return new EntitySet(entities); }
/** * Creates the {@code EntitySet} by copying the given collection to the internal set. */ public static EntitySet of(Collection<? extends Entity> entities) { return new EntitySet(entities); }