summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-09-19 05:39:35 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-09-19 05:39:35 +0000
commit61496509c09126587b63b193a464fa91f00201b0 (patch)
tree5c128e6662eeb9012047f39545ae5590e43de710 /src
parent8cd618876f30f927ce19e0c1edbc8e39e357a209 (diff)
Renamed empty cursor access method to "the".
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java4
-rw-r--r--src/main/java/com/amazon/carbonado/qe/EmptyQuery.java4
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();
}
/**