public int hashCode() { if (byteBlocks == null) return 0; int result = 1; for (int i = 0, n = byteBlocks.size(); i < n; i++) { byte[] byteBlock = (byte[]) byteBlocks.get(i); result = 31 * result + ArrayUtil.hashCode(byteBlock); } return result; }
/** * Tells whether the given array contains the specified element. * * @param o element whose presence in the array is to be tested. * @return <tt>true</tt> if the array contains the specified element. */ public static boolean contains(Object[] a, Object o) { return indexOf(a, o) != -1; } }
public String getAdditionalToStringInformation() { return "actors=" + ArrayUtil.toString(actor); }
public void execute() throws BuildException { // get the JbpmConfiguration JbpmConfiguration jbpmConfiguration = AntHelper.getJbpmConfiguration(jbpmCfg); // if attribute process is set, deploy that process file if (process != null) { handleProcessFile(jbpmConfiguration, process); } // iterate over file sets for (Iterator iter = fileSets.iterator(); iter.hasNext();) { FileSet fileSet = (FileSet) iter.next(); DirectoryScanner dirScanner = fileSet.getDirectoryScanner(getProject()); File baseDir = dirScanner.getBasedir(); String[] includedFiles = dirScanner.getIncludedFiles(); String[] excludedFiles = dirScanner.getExcludedFiles(); for (int i = 0; i < includedFiles.length; i++) { String fileName = includedFiles[i]; if (!ArrayUtil.contains(excludedFiles, fileName)) { handleProcessFile(jbpmConfiguration, new File(baseDir, fileName)); } } } }
public void execute() throws BuildException { // get the JbpmConfiguration JbpmConfiguration jbpmConfiguration = AntHelper.getJbpmConfiguration(jbpmCfg); // if attribute process is set, deploy that process file if (process != null) { handleProcessFile(jbpmConfiguration, process); } // iterate over file sets for (Iterator iter = fileSets.iterator(); iter.hasNext();) { FileSet fileSet = (FileSet) iter.next(); DirectoryScanner dirScanner = fileSet.getDirectoryScanner(getProject()); File baseDir = dirScanner.getBasedir(); String[] includedFiles = dirScanner.getIncludedFiles(); String[] excludedFiles = dirScanner.getExcludedFiles(); for (int i = 0; i < includedFiles.length; i++) { String fileName = includedFiles[i]; if (!ArrayUtil.contains(excludedFiles, fileName)) { handleProcessFile(jbpmConfiguration, new File(baseDir, fileName)); } } } }
public String getAdditionalToStringInformation() { return "actors=" + ArrayUtil.toString(actor); }
public int hashCode() { if (byteBlocks == null) return 0; int result = 1; for (int i = 0, n = byteBlocks.size(); i < n; i++) { byte[] byteBlock = (byte[]) byteBlocks.get(i); result = 31 * result + ArrayUtil.hashCode(byteBlock); } return result; }
/** * Tells whether the given array contains the specified element. * * @param o element whose presence in the array is to be tested. * @return <tt>true</tt> if the array contains the specified element. */ public static boolean contains(Object[] a, Object o) { return indexOf(a, o) != -1; } }
/** * return the token id in case only one token id is set. Otherwise an * {@link IllegalStateException} is thrown */ public long getTokenId() { if (tokenIds == null || tokenIds.length != 1) { throw new IllegalStateException("multiple token ids set: " + ArrayUtil.toString(tokenIds)); } return tokenIds[0]; }
/** * return the process instance id in case only one process instance id is set. Otherwise an * {@link IllegalStateException} is thrown */ public long getProcessInstanceId() { if (processInstanceIds == null || processInstanceIds.length > 1) { throw new IllegalStateException("multiple process instance ids set: " + ArrayUtil.toString(processInstanceIds)); } return processInstanceIds[0]; }
/** * return the token id in case only one token id is set. Otherwise an * {@link IllegalStateException} is thrown */ public long getTokenId() { if (tokenIds == null || tokenIds.length != 1) { throw new IllegalStateException("multiple token ids set: " + ArrayUtil.toString(tokenIds)); } return tokenIds[0]; }
/** * return the process instance id in case only one process instance id is set. Otherwise an * {@link IllegalStateException} is thrown */ public long getProcessInstanceId() { if (processInstanceIds == null || processInstanceIds.length > 1) { throw new IllegalStateException("multiple process instance ids set: " + ArrayUtil.toString(processInstanceIds)); } return processInstanceIds[0]; }
public String toString() { if (processName != null && stateName != null) { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(tokenIds) + ";processName=" + processName + ";processVersion=" + (processVersion > 0 ? Integer.toString(processVersion) : "NA") + ";stateName=" + stateName + getAdditionalToStringInformation() + "]"; } else { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(tokenIds) + ";operateOnSingleObject=" + operateOnSingleObject + getAdditionalToStringInformation() + "]"; } }
public String toString() { if (processName != null && stateName != null) { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(tokenIds) + ";processName=" + processName + ";processVersion=" + (processVersion > 0 ? Integer.toString(processVersion) : "NA") + ";stateName=" + stateName + getAdditionalToStringInformation() + "]"; } else { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(tokenIds) + ";operateOnSingleObject=" + operateOnSingleObject + getAdditionalToStringInformation() + "]"; } }
/** * Overwrite toString to keep semantic of getAdditionalToStringInformation */ public String toString() { if (processName != null) { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(processInstanceIds) + ";processName=" + processName + ";processVersion=" + (processVersion > 0 ? Integer.toString(processVersion) : "NA") + getAdditionalToStringInformation() + "]"; } else { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(processInstanceIds) + ";operateOnSingleObject=" + operateOnSingleObject + getAdditionalToStringInformation() + "]"; } }
/** * Overwrite toString to keep semantic of getAdditionalToStringInformation */ public String toString() { if (processName != null) { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(processInstanceIds) + ";processName=" + processName + ";processVersion=" + (processVersion > 0 ? Integer.toString(processVersion) : "NA") + getAdditionalToStringInformation() + "]"; } else { return getClass().getName() + " [tokenIds=" + ArrayUtil.toString(processInstanceIds) + ";operateOnSingleObject=" + operateOnSingleObject + getAdditionalToStringInformation() + "]"; } }
+ ArrayUtil.toString(classes), e);
+ ArrayUtil.toString(classes), e);
+ ArrayUtil.toString(parameterTypes), e);
+ ArrayUtil.toString(parameterTypes), e);