diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java | 4 | ||||
-rw-r--r-- | src/main/java/com/amazon/carbonado/qe/EmptyQuery.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java b/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java index db3778b..e0649cd 100644 --- a/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java +++ b/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java @@ -34,10 +34,10 @@ public class EmptyCursor<S> implements Cursor<S> { private static final Cursor EMPTY_CURSOR = new EmptyCursor();
/**
- * Returns the singleton empty cursor instance.
+ * Returns the empty cursor instance.
*/
@SuppressWarnings("unchecked")
- public static <S> Cursor<S> getEmptyCursor() {
+ public static <S> Cursor<S> the() {
return EMPTY_CURSOR;
}
diff --git a/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java b/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java index f07e7ff..d0f133c 100644 --- a/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java +++ b/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java @@ -205,14 +205,14 @@ public final class EmptyQuery<S extends Storable> extends AbstractQuery<S> { * Always returns an {@link EmptyCursor}.
*/
public Cursor<S> fetch() {
- return EmptyCursor.getEmptyCursor();
+ return EmptyCursor.the();
}
/**
* Always returns an {@link EmptyCursor}.
*/
public Cursor<S> fetchAfter(S start) {
- return EmptyCursor.getEmptyCursor();
+ return EmptyCursor.the();
}
/**
|