/** * Return a stringified version of the array, using a ',' as a delimiter * @param array the array * @return the string form of the array * @see #toString(Object[], String) */ public static String toString( final Object[] array ) { return toString(array, ",", true); //$NON-NLS-1$ }
/** * Write an File to an OutputStream * Note: this will not close the outputStream; */ public static void write(File f, OutputStream outputStream) throws IOException { write(f, outputStream, DEFAULT_BUFFER_SIZE); }
/** * Check that the value is non-negative (>=0). * @param value Value * @throws IllegalArgumentException If value is negative (<0) */ public static final void isNonNegative(long value) { isNonNegative(value,null); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TableFunctionReference)) { return false; } TableFunctionReference other = (TableFunctionReference)obj; return EquivalenceUtil.areEqual(symbol, other.symbol); }
public Message(Severity severity, String msg) { this.severity = severity; Assertion.isNotNull(msg); this.value = msg; }
public String getContentOfTestFile( final String testFilePath ) throws IOException { final File file = UnitTestUtil.getTestDataFile(testFilePath); return ObjectConverterUtil.convertFileToString(file); }
public Boolean isAccessible(AbstractMetadataRecord record) { if (this.globalState.accessible == null) { return null; } return this.globalState.accessible.get(record); }
/** * Check that the collection contains the value * @param collection Collection to check * @param value Value to check for, may be null * @throws IllegalArgumentException If collection is null or doesn't contain value */ public static final void contains(Collection collection, Object value) { contains(collection, value, null); }
@Override public int read() throws IOException { if (remaining-->0) { return in.read(); } return -1; }
/** * Check that the string is not empty * @param string String * @param message Exception message if check fails * @throws IllegalArgumentException If string is null or empty * @since 3.1 */ public static final void isNotEmpty(String string, String message) { isNotZeroLength(string,message); }
public int hashCode() { int myHash = 0; myHash = HashCodeUtil.hashCode(myHash, this.table); return myHash; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof WindowFunction)) { return false; } WindowFunction other = (WindowFunction)obj; return EquivalenceUtil.areEqual(this.function, other.function) && EquivalenceUtil.areEqual(this.windowSpecification, other.windowSpecification); }
public int hashCode() { int myHash = 0; myHash = HashCodeUtil.hashCode(myHash, this.table); return myHash; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof WindowFunction)) { return false; } WindowFunction other = (WindowFunction)obj; return EquivalenceUtil.areEqual(this.function, other.function) && EquivalenceUtil.areEqual(this.windowSpecification, other.windowSpecification); }