/** * Method description * * * @return */ @Override public boolean isValid() { return Util.isNotEmpty(groupId) && Util.isNotEmpty(artifactId) && Util.isNotEmpty(name) && Util.isNotEmpty(version); }
/** * Returns true if the person is valid. * * * @return true if the person is valid */ @Override public boolean isValid() { return Util.isNotEmpty(name) && (Util.isEmpty(mail) || ValidationUtil.isMailAddressValid(mail)); }
/** * Method description * * * @param context * @param groups * * @return */ private boolean isPermitted(WebSecurityContext context, Set<String> groups) { Collection<String> userGroups = context.getGroups(); return Util.isEmpty(groups) || (Util.isNotEmpty(userGroups) && Util.containsOne(userGroups, groups)); }
/** * Returns {@code true} if the repository is healthy. * * * @return {@code true} if the repository is healthy * * @since 1.36 */ public boolean isHealthy() { return Util.isEmpty(healthCheckFailures); }
/** * Method description * * * @param config * * @return */ public static String getPythonPath(HgConfig config) { String pythonPath = Util.EMPTY_STRING; if (config != null) { pythonPath = Util.nonNull(config.getPythonPath()); } if (Util.isNotEmpty(pythonPath)) { pythonPath = pythonPath.concat(File.pathSeparator); } //J- pythonPath = pythonPath.concat( HgPythonScript.getScriptDirectory( SCMContext.getContext() ).getAbsolutePath() ); //J+ return pythonPath; }
/** * Method description * * * @param date * * @return */ public static String formatDate(Date date) { return formatDate(date, null); }
/** * {@inheritDoc} * * * @return */ @Override public String toString() { StringBuilder out = new StringBuilder("changeset: "); out.append(id).append("\n"); if (parents != null) { out.append("parents: ").append(Util.toString(parents)).append("\n"); } out.append("author: ").append(author).append("\n"); if (date != null) { out.append("date: ").append(Util.formatDate(new Date(date))).append("\n"); } out.append("desc:").append(description).append("\n"); out.append("branches: ").append(Util.toString(branches)).append("\n"); out.append("tags: ").append(Util.toString(tags)).append("\n"); if (modifications != null) { out.append("modifications: \n").append(modifications); } return out.toString(); }
/** * Method description * * * @param iterable * @param <T> * * @return * @since 1.5 */ public static <T> T getFirst(Iterable<T> iterable) { T result = null; if (iterable != null) { result = getFirst(iterable.iterator()); } return result; }
/** * Returns {@code true} if the repository is healthy. * * * @return {@code true} if the repository is healthy * * @since 1.36 */ public boolean isHealthy() { return Util.isEmpty(healthCheckFailures); }
svnRepository.getDir(Util.nonNull(path), revisionNumber, null, (Collection) null); List<FileObject> children = new ArrayList<FileObject>(); String basePath = Util.EMPTY_STRING; if (Util.isNotEmpty(path))
/** * Method description * * * @param date * * @return */ public static String formatDate(Date date) { return formatDate(date, null); }
/** * {@inheritDoc} * * * @return */ @Override public String toString() { StringBuilder out = new StringBuilder("changeset: "); out.append(id).append("\n"); if (parents != null) { out.append("parents: ").append(Util.toString(parents)).append("\n"); } out.append("author: ").append(author).append("\n"); if (date != null) { out.append("date: ").append(Util.formatDate(new Date(date))).append("\n"); } out.append("desc:").append(description).append("\n"); out.append("branches: ").append(Util.toString(branches)).append("\n"); out.append("tags: ").append(Util.toString(tags)).append("\n"); if (modifications != null) { out.append("modifications: \n").append(modifications); } return out.toString(); }
/** * Method description * * * @param iterable * @param <T> * * @return * @since 1.5 */ public static <T> T getFirst(Iterable<T> iterable) { T result = null; if (iterable != null) { result = getFirst(iterable.iterator()); } return result; }
/** * Method description * * * @return */ @Override public boolean isValid() { return Util.isNotEmpty(groupId) && Util.isNotEmpty(artifactId) && Util.isNotEmpty(name) && Util.isNotEmpty(version); }
/** * Returns true if the person is valid. * * * @return true if the person is valid */ @Override public boolean isValid() { return Util.isNotEmpty(name) && (Util.isEmpty(mail) || ValidationUtil.isMailAddressValid(mail)); }
/** * Method description * * * @param revision * * @return */ public static String getRevision(String revision) { return Util.isEmpty(revision) ? REVISION_TIP : revision; }
/** * Constructs a new {@link RevisionNotFoundException} * with the specified revision. * * * @param revision revision which could not be found */ public RevisionNotFoundException(String revision) { super("revision \"".concat(Util.nonNull(revision)).concat("\" not found")); this.revision = Util.nonNull(revision); }
/** * Method description * * * @param date * * @return * * @throws Exception */ @Override public String marshal(Date date) throws Exception { return Util.formatDate(date); }
result = Util.getFirst(walk);