@Test public void intAt() { ObjectNode node = new ObjectNode(mapper.getNodeFactory()); node.put("foo", 1); int value = Selectors.integerAt(node, FOO_FIELD); assertThat(value, is(1)); }
public static int integerAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isInt()) { throw new WrongTypeException(pointer, "not an integer"); } return node.asInt(); }
Selectors { public static int integerAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isInt()) { throw new WrongTypeException(pointer, "not an integer"); } return node.asInt(); } }
Selectors { public static int integerAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isInt()) { throw new WrongTypeException(pointer, "not an integer"); } return node.asInt(); }  }
Selectors { public static int integerAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isInt()) { throw new WrongTypeException(pointer, "not an integer"); } return node.asInt(); }  static String textAt(JsonNode node, JsonPointer pointer); static int integerAt(JsonNode node, JsonPointer pointer); static Iterable<? extends JsonNode> listAt(JsonNode node, JsonPointer pointer); static List<String> textListAt(JsonNode node, JsonPointer pointer); static Map<String, String> propertiesAt(JsonNode node, JsonPointer pointer); }
Selectors { public static int integerAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isInt()) { throw new WrongTypeException(pointer, "not an integer"); } return node.asInt(); }  static String textAt(JsonNode node, JsonPointer pointer); static int integerAt(JsonNode node, JsonPointer pointer); static Iterable<? extends JsonNode> listAt(JsonNode node, JsonPointer pointer); static List<String> textListAt(JsonNode node, JsonPointer pointer); static Map<String, String> propertiesAt(JsonNode node, JsonPointer pointer);  }