Package com.couchbase.lite
Class Scope
- java.lang.Object
-
- com.couchbase.lite.Scope
-
public class Scope extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)CollectiongetCollection(java.lang.String collectionName)Get the named collection for the scope.java.util.Set<Collection>getCollections()Get all collections in the scope.java.lang.StringgetName()Get the scope name.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NonNull public java.lang.String getName()
Get the scope name.- Returns:
- Scope name
-
getCollections
@NonNull public java.util.Set<Collection> getCollections() throws CouchbaseLiteException
Get all collections in the scope.- Returns:
- a set of all collections in the scope
- Throws:
CouchbaseLiteException
-
getCollection
@Nullable public Collection getCollection(@NonNull java.lang.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
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-