@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttributeValueList() == null) ? 0 : getAttributeValueList().hashCode()); hashCode = prime * hashCode + ((getComparisonOperator() == null) ? 0 : getComparisonOperator().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttributeValueList() != null) sb.append("AttributeValueList: ").append(getAttributeValueList()).append(","); if (getComparisonOperator() != null) sb.append("ComparisonOperator: ").append(getComparisonOperator()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Condition == false) return false; Condition other = (Condition) obj; if (other.getAttributeValueList() == null ^ this.getAttributeValueList() == null) return false; if (other.getAttributeValueList() != null && other.getAttributeValueList().equals(this.getAttributeValueList()) == false) return false; if (other.getComparisonOperator() == null ^ this.getComparisonOperator() == null) return false; if (other.getComparisonOperator() != null && other.getComparisonOperator().equals(this.getComparisonOperator()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Condition condition, ProtocolMarshaller protocolMarshaller) { if (condition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(condition.getAttributeValueList(), ATTRIBUTEVALUELIST_BINDING); protocolMarshaller.marshall(condition.getComparisonOperator(), COMPARISONOPERATOR_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttributeValueList() == null) ? 0 : getAttributeValueList().hashCode()); hashCode = prime * hashCode + ((getComparisonOperator() == null) ? 0 : getComparisonOperator().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttributeValueList() != null) sb.append("AttributeValueList: " + getAttributeValueList() + ","); if (getComparisonOperator() != null) sb.append("ComparisonOperator: " + getComparisonOperator()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Condition == false) return false; Condition other = (Condition) obj; if (other.getAttributeValueList() == null ^ this.getAttributeValueList() == null) return false; if (other.getAttributeValueList() != null && other.getAttributeValueList().equals(this.getAttributeValueList()) == false) return false; if (other.getComparisonOperator() == null ^ this.getComparisonOperator() == null) return false; if (other.getComparisonOperator() != null && other.getComparisonOperator().equals(this.getComparisonOperator()) == false) return false; return true; } }
if (getAttributeValueList() == null) { this.attributeValueList = new java.util.ArrayList<AttributeValue>( attributeValueList.length);
public void marshall(Condition condition, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (condition.getAttributeValueList() != null) { java.util.List<AttributeValue> attributeValueList = condition.getAttributeValueList(); jsonWriter.name("AttributeValueList"); jsonWriter.beginArray(); for (AttributeValue attributeValueListItem : attributeValueList) { if (attributeValueListItem != null) { AttributeValueJsonMarshaller.getInstance().marshall(attributeValueListItem, jsonWriter); } } jsonWriter.endArray(); } if (condition.getComparisonOperator() != null) { String comparisonOperator = condition.getComparisonOperator(); jsonWriter.name("ComparisonOperator"); jsonWriter.value(comparisonOperator); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttributeValueList() == null) ? 0 : getAttributeValueList().hashCode()); hashCode = prime * hashCode + ((getComparisonOperator() == null) ? 0 : getComparisonOperator().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAttributeValueList() != null) sb.append("AttributeValueList: ").append(getAttributeValueList()).append(","); if (getComparisonOperator() != null) sb.append("ComparisonOperator: ").append(getComparisonOperator()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Condition == false) return false; Condition other = (Condition) obj; if (other.getAttributeValueList() == null ^ this.getAttributeValueList() == null) return false; if (other.getAttributeValueList() != null && other.getAttributeValueList().equals(this.getAttributeValueList()) == false) return false; if (other.getComparisonOperator() == null ^ this.getComparisonOperator() == null) return false; if (other.getComparisonOperator() != null && other.getComparisonOperator().equals(this.getComparisonOperator()) == false) return false; return true; }
@Override public String toString() { final Collection<String> terms = new ArrayList<String>(this.conds.size()); for (final Map.Entry<String, Condition> cond : this.conds.entrySet()) { terms.add( String.format( "%s %s %s", cond.getKey(), cond.getValue().getComparisonOperator(), cond.getValue().getAttributeValueList() ) ); } return Joiner.on(" AND ").join(terms); }
@Override public String toString() { final Collection<String> terms = new ArrayList<String>(this.conds.size()); for (final Map.Entry<String, Condition> cond : this.conds.entrySet()) { terms.add( String.format( "%s %s %s", cond.getKey(), cond.getValue().getComparisonOperator(), cond.getValue().getAttributeValueList() ) ); } return Joiner.on(" AND ").join(terms); }
/** * Marshall the given parameter object. */ public void marshall(Condition condition, ProtocolMarshaller protocolMarshaller) { if (condition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(condition.getAttributeValueList(), ATTRIBUTEVALUELIST_BINDING); protocolMarshaller.marshall(condition.getComparisonOperator(), COMPARISONOPERATOR_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
.sql(sql.toString()); for (final Condition cond : conds.values()) { if (cond.getAttributeValueList().size() != 1) { throw new UnsupportedOperationException( "at the moment only one value of condition is supported" final AttributeValue val = cond.getAttributeValueList().get(0); session = session.set(H2Data.value(val));
.sql(sql.toString()); for (final Condition cond : conds.values()) { if (cond.getAttributeValueList().size() != 1) { throw new UnsupportedOperationException( "at the moment only one value of condition is supported" final AttributeValue val = cond.getAttributeValueList().get(0); session = session.set(H2Data.value(val));
conditionString.append(String.format("%s %s %s,", s, conditions .get(s).getComparisonOperator(), conditions.get(s) .getAttributeValueList().get(0)));