Package 

Enum RestrictTo.Scope

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum RestrictTo.Scope
    
                        
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LIBRARY

      Restrict usage to code within the same library (e.g. the samegradle group ID and artifact ID).

      LIBRARY_GROUP

      Restrict usage to code within the same group of libraries.This corresponds to the gradle group ID.

      LIBRARY_GROUP_PREFIX

      Restrict usage to code within packages whose groups sharethe same library group prefix up to the last ".", so forexample libraries foo.bar:lib1 and foo.baz:lib2 sharethe prefix "foo." and so they can use each other'sapis that are restricted to this scope. Similarly forcom.foo.bar:lib1 and com.foo.baz:lib2 where they share"com.foo.". Library com.bar.qux:lib3 however will notbe able to use the restricted api because it onlyshares the prefix "com." and not all the way until thelast ".".

      GROUP_ID

      Restrict usage to code within the same group ID (based on gradlegroup ID). This is an alias for LIBRARY_GROUP_PREFIX.

      TESTS

      Restrict usage to tests.

      SUBCLASSES

      Restrict usage to subclasses of the enclosing class.

      Note: This scope should not be used to annotatepackages.