java.lang.Object
com.couchbase.client.java.manager.collection.ScopeSpec

public class ScopeSpec extends Object
The ScopeSpec describes properties of a scope that can be managed.
  • Method Details Link icon

    • create Link icon

      @Internal public static ScopeSpec create(String name, Set<CollectionSpec> collectionSpecs)
      Creates a new ScopeSpec with a set of CollectionSpecs.
      Parameters:
      name - the name of the scope.
      collectionSpecs - the collections that should be part of the scope.
      Returns:
      the created ScopeSpec.
    • create Link icon

      @Internal public static ScopeSpec create(String name)
      Creates a new ScopeSpec with no collections attached.
      Parameters:
      name - the name of the scope.
      Returns:
      the created ScopeSpec.
    • name Link icon

      public String name()
      Returns the name of the scope.
      Returns:
      the name of the scope.
    • collections Link icon

      public Set<CollectionSpec> collections()
      Returns the underlying collections of this scope.
      Returns:
      the underlying collections of this scope.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object