Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Rename find() -> findAll()
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
  • Loading branch information
dbluhm committed Jun 18, 2020
1 parent 176e1d0 commit f3452eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -19,12 +19,12 @@ public interface IPersistenceHandler<T> {
public long clear() throws Exception;

/**
* Retrieve all DataElements from the collection.
* Find and retrieve all DataElements from the collection.
* @param <T>
* @return an iterable of the retrieved elements.
* @throws Exception
*/
public Iterable<T> find() throws Exception;
public Iterable<T> findAll() throws Exception;

/**
* Find DataElement by UUID.
Expand Down
Expand Up @@ -51,13 +51,13 @@ public class $class implements $interface<$elementInterface> {
}

/**
* Retrieve all $elementInterface from the collection.
* Find and retrieve all $elementInterface from the collection.
* @param <T>
* @return an iterable of the retrieved elements.
* @throws Exception
*/
@Override
public Iterable<$elementInterface> find() throws Exception {
public Iterable<$elementInterface> findAll() throws Exception {
return this.collection.find()
.map(doc -> new ${implementation}().fromJSON(doc));
}
Expand Down

0 comments on commit f3452eb

Please sign in to comment.