Exemple #1
0
 @Override
 public boolean equals(Object other) {
   if (!(other instanceof DataSource)) {
     return false;
   }
   return data.equals(((DataSource) other).getObjectNode());
 }
 private static boolean apply(Object objectToSerialize, String str, ObjectMapper mapper) {
   final ObjectNode lhs = mapper.convertValue(objectToSerialize, ObjectNode.class);
   ObjectNode rhs = null;
   try {
     rhs = mapper.readValue(str, ObjectNode.class);
   } catch (IOException e) {
     LOGGER.error("Failed to read value", e);
   }
   return lhs.equals(rhs);
 }