} else if (LogicalOrComparisonExpressionType.fromString(jp.getCurrentName()) != null) { final CsdlLogicalOrComparisonExpression logicalOrComparissonExp = new CsdlLogicalOrComparisonExpression(LogicalOrComparisonExpressionType.fromString(jp.getCurrentName())); jp.nextToken(); .getType().name())) { jp.nextToken();
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + ((left == null) ? 0 : left.hashCode()); result = prime * result + ((right == null) ? 0 : right.hashCode()); result = prime * result + ((annotations == null) ? 0 : annotations.hashCode()); return result; } }
} else if (LogicalOrComparisonExpressionType.fromString(jp.getCurrentName()) != null) { final CsdlLogicalOrComparisonExpression logicalOrComparissonExp = new CsdlLogicalOrComparisonExpression(LogicalOrComparisonExpressionType.fromString(jp.getCurrentName())); jp.nextToken(); .getType().name())) { jp.nextToken();
@Override public boolean equals (Object obj) { if (obj == null) { return false; } if (!(obj instanceof CsdlLogicalOrComparisonExpression)) { return false; } CsdlLogicalOrComparisonExpression csdlLogComp = (CsdlLogicalOrComparisonExpression) obj; return (this.getLeft() == null ? csdlLogComp.getLeft() == null : this.getLeft().equals(csdlLogComp.getLeft())) && (this.getRight() == null ? csdlLogComp.getRight() == null : this.getRight().equals(csdlLogComp.getRight())) && (this.getType() == null ? csdlLogComp.getType() == null : this.getType().equals(csdlLogComp.getType())) && (this.getAnnotations() == null ? csdlLogComp.getAnnotations() == null : checkAnnotations(csdlLogComp.getAnnotations())); }
/** * Creates a new type by a given string e.g. "And". * Will NOT throw an IlligalArgumentException for invalid types. If needed use the valueOf method. * @param value Type as string * @return Type type */ public static LogicalOrComparisonExpressionType fromString(final String value) { LogicalOrComparisonExpressionType result = null; try { result = valueOf(value); } catch (IllegalArgumentException e) { // ignore } return result; } }
/** * Creates a new type by a given string e.g. "And". * Will NOT throw an IlligalArgumentException for invalid types. If needed use the valueOf method. * @param value Type as string * @return Type type */ public static LogicalOrComparisonExpressionType fromString(final String value) { LogicalOrComparisonExpressionType result = null; try { result = valueOf(value); } catch (IllegalArgumentException e) { // ignore } return result; } }
public AbstractEdmLogicalOrComparisonExpression(Edm edm, CsdlLogicalOrComparisonExpression csdlExp) { super(edm, csdlExp.getType().toString(), csdlExp); this.csdlExp = csdlExp; }
public AbstractEdmLogicalOrComparisonExpression(Edm edm, CsdlLogicalOrComparisonExpression csdlExp) { super(edm, csdlExp.getType().toString(), csdlExp); this.csdlExp = csdlExp; }