/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @Override @JsonIgnore public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
@Override public CoinbaseProCandle deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); TreeNode jo = mapper.readTree(jp); if (!jo.isArray() || jo.size() != 6) { throw new JsonMappingException(jp, "An array of length 6 expected: " + jo.toString()); } for (int i = 0; i < 6; i++) { if (!(jo.get(i) instanceof NumericNode)) { throw new JsonMappingException(jp, "Numeric values expected: " + jo.toString()); } } return new CoinbaseProCandle( new Date(((NumericNode) jo.get(0)).asLong() * 1000), new BigDecimal(((NumericNode) jo.get(3)).asText()), new BigDecimal(((NumericNode) jo.get(2)).asText()), new BigDecimal(((NumericNode) jo.get(1)).asText()), new BigDecimal(((NumericNode) jo.get(4)).asText()), new BigDecimal(((NumericNode) jo.get(5)).asText())); } }
/** * @return The expected value for this condition. */ @Override @JsonIgnore public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
/** * @return The expected value for this condition. */ @JsonIgnore @Override public String getExpectedValue() { return expectedValue.asText(); }
@Override public GDAXCandle deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); TreeNode jo = mapper.readTree(jp); if (!jo.isArray() || jo.size() != 6) { throw new JsonMappingException(jp, "An array of length 6 expected: " + jo.toString()); } for (int i = 0; i < 6; i++) { if (!(jo.get(i) instanceof NumericNode)) { throw new JsonMappingException(jp, "Numeric values expected: " + jo.toString()); } } return new GDAXCandle( new Date(((NumericNode) jo.get(0)).asLong() * 1000), new BigDecimal(((NumericNode) jo.get(3)).asText()), new BigDecimal(((NumericNode) jo.get(2)).asText()), new BigDecimal(((NumericNode) jo.get(1)).asText()), new BigDecimal(((NumericNode) jo.get(4)).asText()), new BigDecimal(((NumericNode) jo.get(5)).asText())); } }