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 ScopeSpecCreates a newScopeSpecwith no collections attached.static ScopeSpeccreate(String name, Set<CollectionSpec> collectionSpecs) Creates a newScopeSpecwith a set ofCollectionSpecs.booleaninthashCode()name()Returns the name of the scope.toString()
-
Method Details
-
create
Creates a newScopeSpecwith a set ofCollectionSpecs.- Parameters:
name- the name of the scope.collectionSpecs- the collections that should be part of the scope.- Returns:
- the created
ScopeSpec.
-
create
Creates a newScopeSpecwith 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()
-