@Test public void testEquals() { assertEquals(new RValueExpression(new Value(JsonNodeFactory.instance.objectNode())), new RValueExpression(new Value(JsonNodeFactory.instance.objectNode()))); RValueExpression instance = new RValueExpression(new Value(JsonNodeFactory.instance.objectNode())); assertFalse(instance.equals(null)); assertFalse(instance.equals("")); assertFalse(instance.equals(new RValueExpression(Path.ANYPATH))); assertFalse(instance.equals(new RValueExpression(new Value(this)))); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final RValueExpression other = (RValueExpression) obj; if (!Objects.equals(this.value, other.value)) { return false; } if (!Objects.equals(this.path, other.path)) { return false; } if (this.type != other.type) { return false; } return true; }
RValueExpression extends JsonObject { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final RValueExpression other = (RValueExpression) obj; if (!Objects.equals(this.value, other.value)) { return false; } if (!Objects.equals(this.path, other.path)) { return false; } if (this.type != other.type) { return false; } return true; } }
RValueExpression extends JsonObject { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final RValueExpression other = (RValueExpression) obj; if (!Objects.equals(this.value, other.value)) { return false; } if (!Objects.equals(this.path, other.path)) { return false; } if (this.type != other.type) { return false; } return true; } RValueExpression(Value value);  RValueExpression(Path p); private  RValueExpression(Value value, Path path, RValueType type); }
RValueExpression extends JsonObject { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final RValueExpression other = (RValueExpression) obj; if (!Objects.equals(this.value, other.value)) { return false; } if (!Objects.equals(this.path, other.path)) { return false; } if (this.type != other.type) { return false; } return true; } RValueExpression(Value value);  RValueExpression(Path p); private  RValueExpression(Value value, Path path, RValueType type); static RValueExpression nullRValue(); Value getValue(); Path getPath(); RValueType getType(); @Override JsonNode toJson(); static RValueExpression fromJson(JsonNode node); @Override int hashCode(); @Override boolean equals(Object obj); }
RValueExpression extends JsonObject { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final RValueExpression other = (RValueExpression) obj; if (!Objects.equals(this.value, other.value)) { return false; } if (!Objects.equals(this.path, other.path)) { return false; } if (this.type != other.type) { return false; } return true; } RValueExpression(Value value);  RValueExpression(Path p); private  RValueExpression(Value value, Path path, RValueType type); static RValueExpression nullRValue(); Value getValue(); Path getPath(); RValueType getType(); @Override JsonNode toJson(); static RValueExpression fromJson(JsonNode node); @Override int hashCode(); @Override boolean equals(Object obj); static final RValueExpression NULL; }