Class ScopeSpec
java.lang.Object
com.couchbase.client.java.manager.collection.ScopeSpec
The
ScopeSpec
describes properties of a scope that can be managed.-
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying collections of this scope.static ScopeSpec
Creates a newScopeSpec
with no collections attached.static ScopeSpec
create
(String name, Set<CollectionSpec> collectionSpecs) Creates a newScopeSpec
with a set ofCollectionSpec
s.boolean
int
hashCode()
name()
Returns the name of the scope.toString()
-
Method Details
-
create
Creates a newScopeSpec
with a set ofCollectionSpec
s.- Parameters:
name
- the name of the scope.collectionSpecs
- the collections that should be part of the scope.- Returns:
- the created
ScopeSpec
.
-
create
Creates a newScopeSpec
with no collections attached.- Parameters:
name
- the name of the scope.- Returns:
- the created
ScopeSpec
.
-
name
Returns the name of the scope.- Returns:
- the name of the scope.
-
collections
Returns the underlying collections of this scope.- Returns:
- the underlying collections of this scope.
-
toString
-
equals
-
hashCode
public int hashCode()
-