@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MultipleElementSymbol)) { return false; } MultipleElementSymbol other = (MultipleElementSymbol)obj; return EquivalenceUtil.areEqual(this.group, other.group); }
public void testGetColumnTypes() throws Exception { Class[] expected = {String.class, String.class, String.class, String.class}; Class[] types = example(true).getColumnTypes(); assertTrue(EquivalenceUtil.areEquivalent(expected, types)); }
public void testAreStrictlyEquivalentObjectObject() { // Equal references assertFalse(EquivalenceUtil.areStrictlyEquivalent((Object)null, (Object)null)); Object obj1 = new Integer(1000); assertFalse(EquivalenceUtil.areStrictlyEquivalent(obj1, obj1)); // unequal with null, symmetric assertFalse(EquivalenceUtil.areStrictlyEquivalent(obj1, null)); assertFalse(EquivalenceUtil.areStrictlyEquivalent(null, obj1)); // Equivalent, symmetric Object obj2 = new Integer(1000); assertTrue(EquivalenceUtil.areStrictlyEquivalent(obj1, obj2)); assertTrue(EquivalenceUtil.areStrictlyEquivalent(obj2, obj1)); }
public void testGetColumnNames() throws Exception { String[] expected = new String[4]; String[] names = example(true).getColumnNames(); assertTrue(EquivalenceUtil.areEquivalent(expected, names)); }
public boolean equals(Object obj) { if(obj == this) { return true; } else if(obj == null || !(obj instanceof RequestID)) { return false; } RequestID other = (RequestID)obj; return this.executionID == other.executionID && EquivalenceUtil.areEqual(this.connectionID, other.connectionID); }
public boolean equals(Object obj) { if(obj == this) { return true; } else if(obj == null || !(obj instanceof RequestID)) { return false; } RequestID other = (RequestID)obj; return this.executionID == other.executionID && EquivalenceUtil.areEqual(this.connectionID, other.connectionID); }
@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); }
@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); }
@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); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof WindowSpecification)) { return false; } WindowSpecification other = (WindowSpecification)obj; return EquivalenceUtil.areEqual(this.partition, other.partition) && EquivalenceUtil.areEqual(this.orderBy, other.orderBy); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof BatchedUpdateCommand)) { return false; } BatchedUpdateCommand other = (BatchedUpdateCommand)obj; return EquivalenceUtil.areEqual(commands, other.commands) && this.singleResult == other.singleResult; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof BatchedUpdateCommand)) { return false; } BatchedUpdateCommand other = (BatchedUpdateCommand)obj; return EquivalenceUtil.areEqual(commands, other.commands) && this.singleResult == other.singleResult; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MultipleElementSymbol)) { return false; } MultipleElementSymbol other = (MultipleElementSymbol)obj; return EquivalenceUtil.areEqual(this.group, other.group); }
@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); }