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

    • create

      @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

      @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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object