@Test public void testDecodeFirstInvalid() { Optional<String> actual = sut.extractFirstKey("1"); assertThat(actual.isPresent(), is(false)); }
@Override public <T> Optional<T> extractFirstKey(String paginationToken, Class<T> clazz) { return extractKey(paginationToken, FIRST_KEY, clazz); }
SimplePaginationTokenEncoder implements PaginationTokenEncoder { @Override public <T> Optional<T> extractFirstKey(String paginationToken, Class<T> clazz) { return extractKey(paginationToken, FIRST_KEY, clazz); } }
SimplePaginationTokenEncoder implements PaginationTokenEncoder { @Override public <T> Optional<T> extractFirstKey(String paginationToken, Class<T> clazz) { return extractKey(paginationToken, FIRST_KEY, clazz); }  }
SimplePaginationTokenEncoder implements PaginationTokenEncoder { @Override public <T> Optional<T> extractFirstKey(String paginationToken, Class<T> clazz) { return extractKey(paginationToken, FIRST_KEY, clazz); }  @Override String encode(Object firstKey, Object lastKey); @Override Optional<T> extractFirstKey(String paginationToken, Class<T> clazz); @Override Optional<T> extractLastKey(String paginationToken, Class<T> clazz); @Override Optional<String> extractFirstKey(String paginationToken); @Override Optional<String> extractLastKey(String paginationToken); }
SimplePaginationTokenEncoder implements PaginationTokenEncoder { @Override public <T> Optional<T> extractFirstKey(String paginationToken, Class<T> clazz) { return extractKey(paginationToken, FIRST_KEY, clazz); }  @Override String encode(Object firstKey, Object lastKey); @Override Optional<T> extractFirstKey(String paginationToken, Class<T> clazz); @Override Optional<T> extractLastKey(String paginationToken, Class<T> clazz); @Override Optional<String> extractFirstKey(String paginationToken); @Override Optional<String> extractLastKey(String paginationToken);  }