- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {SimpleDateFormat s =
String pattern;new SimpleDateFormat(pattern)
String template;Locale locale;new SimpleDateFormat(template, locale)
new SimpleDateFormat()
- Smart code suggestions by Codota
}
/** * Gets an {@link Iterable} of {@link HibernateConfigurationFileModel}s for the given {@link ProjectModel}. */ public Iterable<HibernateConfigurationFileModel> findAllByApplication(final ProjectModel application) { List<HibernateConfigurationFileModel> results = new ArrayList<>(); for (HibernateConfigurationFileModel model : findAll()) { Set<ProjectModel> modelApplications = ProjectTraversalCache.getApplicationsForProject(getGraphContext(), model.getProjectModel()); if (modelApplications.contains(application)) results.add(model); } return results; } }
/** * Gets an {@link Iterable} of {@link HibernateConfigurationFileModel}s for the given {@link ProjectModel}. */ public Iterable<HibernateConfigurationFileModel> findAllByApplication(final ProjectModel application) { List<HibernateConfigurationFileModel> results = new ArrayList<>(); for (HibernateConfigurationFileModel model : findAll()) { Set<ProjectModel> modelApplications = ProjectTraversalCache.getApplicationsForProject(getGraphContext(), model.getProjectModel()); if (modelApplications.contains(application)) results.add(model); } return results; } }