Modifier and Type | Method and Description |
---|---|
Set<CollectionSpec> |
collections()
Returns the underlying collections of this scope.
|
static ScopeSpec |
create(String name)
Creates a new
ScopeSpec with no collections attached. |
static ScopeSpec |
create(String name,
Set<CollectionSpec> collectionSpecs)
Creates a new
ScopeSpec with a set of CollectionSpec s. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
name()
Returns the name of the scope.
|
String |
toString() |
@Stability.Internal public static ScopeSpec create(String name, Set<CollectionSpec> collectionSpecs)
ScopeSpec
with a set of CollectionSpec
s.name
- the name of the scope.collectionSpecs
- the collections that should be part of the scope.ScopeSpec
.@Stability.Internal public static ScopeSpec create(String name)
ScopeSpec
with no collections attached.name
- the name of the scope.ScopeSpec
.public String name()
public Set<CollectionSpec> collections()
Copyright © 2024 Couchbase, Inc.. All rights reserved.