Skip to content

Commit 04dae74

Browse files
Update JavaDoc.
Original Pull Request: #1996
1 parent e496c19 commit 04dae74

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

Diff for: src/main/java/org/springframework/data/redis/core/RedisKeyValueAdapter.java

+15
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,26 @@ public List<?> getAllOf(String keyspace) {
376376
return getAllOf(keyspace, Object.class, -1, -1);
377377
}
378378

379+
/*
380+
* (non-Javadoc)
381+
* @see org.springframework.data.keyvalue.core.KeyValueAdapter#getAllOf(java.lang.String, java.lang.Class)
382+
*/
379383
@Override
380384
public <T> Iterable<T> getAllOf(String keyspace, Class<T> type) {
381385
return getAllOf(keyspace, type, -1, -1);
382386
}
383387

388+
/**
389+
* Get all elements for given keyspace.
390+
*
391+
* @param keyspace the keyspace to fetch entities from.
392+
* @param type the desired target type.
393+
* @param offset index value to start reading.
394+
* @param rows maximum number or entities to return.
395+
* @param <T>
396+
* @return never {@literal null}.
397+
* @since 2.5
398+
*/
384399
public <T> List<T> getAllOf(String keyspace, Class<T> type, long offset, int rows) {
385400

386401
byte[] binKeyspace = toBytes(keyspace);

Diff for: src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ void getShouldReadNestedObjectCorrectly() {
227227
assertThat(((Person) loaded).address.country).isEqualTo("Andor");
228228
}
229229

230-
@Test // #1995
231-
void getAllOfShouldReturnSuperTypeIfForUnregisteredTypeAlias() {
230+
@Test // GH-1995
231+
void getAllOfShouldReturnSuperTypeForUnregisteredTypeAlias() {
232232

233233
Map<String, String> map = new LinkedHashMap<>();
234234
map.put("_class", "taveren");
@@ -240,8 +240,8 @@ void getAllOfShouldReturnSuperTypeIfForUnregisteredTypeAlias() {
240240
assertThat(loaded).isExactlyInstanceOf(Person.class);
241241
}
242242

243-
@Test // #1995
244-
void getAllOfShouldReturnCorrectTypeIfForRegisteredTypeAlias() {
243+
@Test // GH-1995
244+
void getAllOfShouldReturnCorrectTypeForRegisteredTypeAlias() {
245245

246246
mappingContext.getPersistentEntity(TaVeren.class);
247247

0 commit comments

Comments
 (0)