Package com.couchbase.lite
Class Scope
java.lang.Object
com.couchbase.lite.Scope
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCollection
(String collectionName) Get the named collection for the scope.Get all collections in the scope.getName()
Get the scope name.int
hashCode()
toString()
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Method Details
-
getName
Get the scope name.- Returns:
- Scope name
-
getCollections
Get all collections in the scope.- Returns:
- a set of all collections in the scope
- Throws:
CouchbaseLiteException
-
getCollection
@Nullable public Collection getCollection(@NonNull String collectionName) throws CouchbaseLiteException Get the named collection for the scope.- Parameters:
collectionName
- the name of the sought collection- Returns:
- the named collection or null
- Throws:
CouchbaseLiteException
-
toString
-
equals
-
hashCode
public int hashCode()
-