Class Scope.ConcurrentScopeSet

All Implemented Interfaces:
Serializable, ConcurrentMap<IBasicScope,Boolean>, Map<IBasicScope,Boolean>
Enclosing class:
Scope

private final class Scope.ConcurrentScopeSet extends ConcurrentHashMap<IBasicScope,Boolean>
  • Field Details

  • Constructor Details

    • ConcurrentScopeSet

      ConcurrentScopeSet()
  • Method Details

    • add

      public boolean add(IBasicScope scope)
    • remove

      public Boolean remove(Object scope)
      Specified by:
      remove in interface Map<IBasicScope,Boolean>
      Overrides:
      remove in class ConcurrentHashMap<IBasicScope,Boolean>
    • contains

      public boolean contains(Object scope)
      Returns whether or not a scope is in the collection; we're only concerned with keys.
      Overrides:
      contains in class ConcurrentHashMap<IBasicScope,Boolean>
      Parameters:
      scope -
      Returns:
      true if it exists and false otherwise
    • getNames

      public Set<String> getNames()
      Returns the scope names.
      Returns:
      names
    • hasName

      public boolean hasName(String name)
      Returns whether or not a named scope exists.
      Returns:
      true if a matching scope is found, false otherwise
    • getBasicScope

      public IBasicScope getBasicScope(ScopeType type, String name)
      Returns a child scope for a given name and type.
      Parameters:
      type - Scope type
      name - Scope name
      Returns:
      scope