@Test public void isNextIsEndHash() { List<JsonSlice> slices; slices = new ArrayList<JsonSlice>(); slices.add(new JsonSlice(State.START_HASH)); slices.add(new JsonSlice(State.END_HASH)); assertThat(JsonSliceUtil.isNextIsEndHash(slices, 0), is(true)); slices = new ArrayList<JsonSlice>(); slices.add(new JsonSlice(State.START_HASH)); assertThat(JsonSliceUtil.isNextIsEndHash(slices, 0), is(false)); slices = new ArrayList<JsonSlice>(); slices.add(new JsonSlice(State.START_HASH)); slices.add(new JsonSlice(State.START_HASH)); assertThat(JsonSliceUtil.isNextIsEndHash(slices, 0), is(false)); }
static boolean isNextIsEndHash(List<JsonSlice> slices, int index) { if (slices.size() <= index + 1) { return false; } else { return slices.get(index + 1).getState() == State.END_HASH; } }
JsonSliceUtil { static boolean isNextIsEndHash(List<JsonSlice> slices, int index) { if (slices.size() <= index + 1) { return false; } else { return slices.get(index + 1).getState() == State.END_HASH; } } }
JsonSliceUtil { static boolean isNextIsEndHash(List<JsonSlice> slices, int index) { if (slices.size() <= index + 1) { return false; } else { return slices.get(index + 1).getState() == State.END_HASH; } }  }
JsonSliceUtil { static boolean isNextIsEndHash(List<JsonSlice> slices, int index) { if (slices.size() <= index + 1) { return false; } else { return slices.get(index + 1).getState() == State.END_HASH; } }  static String slicesToString(List<JsonSlice> slices); }
JsonSliceUtil { static boolean isNextIsEndHash(List<JsonSlice> slices, int index) { if (slices.size() <= index + 1) { return false; } else { return slices.get(index + 1).getState() == State.END_HASH; } }  static String slicesToString(List<JsonSlice> slices);  }