Codota Logo
ApiSurface.containsOnlyPackages
Code IndexAdd Codota to your IDE (free)

How to use
containsOnlyPackages
method
in
org.apache.beam.sdk.util.ApiSurface

Best Java code snippets using org.apache.beam.sdk.util.ApiSurface.containsOnlyPackages (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.apache.beam/beam-sdks-java-core

/** See {@link ApiSurface#containsOnlyPackages(Set)}. */
public static Matcher<ApiSurface> containsOnlyPackages(final String... packageNames) {
 return containsOnlyPackages(Sets.newHashSet(packageNames));
}
origin: org.apache.beam/beam-sdks-java-core

 @Test
 public void testSdkApiSurface() throws Exception {

  @SuppressWarnings("unchecked")
  final Set<String> allowed =
    ImmutableSet.of(
      "org.apache.beam",
      "com.fasterxml.jackson.annotation",
      "com.fasterxml.jackson.core",
      "com.fasterxml.jackson.databind",
      "org.apache.avro",
      "org.hamcrest",
      // via DataflowMatchers
      "org.codehaus.jackson",
      // via Avro
      "org.joda.time",
      "org.junit");

  assertThat(getSdkApiSurface(getClass().getClassLoader()), containsOnlyPackages(allowed));
 }
}
origin: org.apache.beam/beam-runners-direct-java

    .pruningPattern("java[.]util.*");
assertThat(apiSurface, containsOnlyPackages(allowed));
org.apache.beam.sdk.utilApiSurfacecontainsOnlyPackages

Javadoc

A factory method to create an ApiSurface matcher, producing a positive match if the queried api surface contains classes ONLY from specified package names.

Popular methods of ApiSurface

  • ofPackage
    Returns an ApiSurface object representing the given package and all subpackages.
  • pruningPattern
    Returns an ApiSurface like this one, but pruning transitive references from classes whose full name
  • containsOnlyClassesMatching
    See ApiSurface#containsOnlyClassesMatching(Set).
  • classesInPackage
    A factory method to create a Class matcher for classes residing in a given package.
  • getExposedClasses
    Returns exposed types in this set, including arrays and primitives as specified.
  • includingClass
    Returns an ApiSurface like this one, but also including the given class.
  • pruningClass
    Returns an ApiSurface like this one, but pruning references from the provided class.
  • pruningClassName
    Returns an ApiSurface like this one, but pruning references from the named class.
  • <init>
  • addExposedTypes
    See #addExposedTypes(Type,Class).
  • constructExposedToExposers
    See #getExposedToExposers.
  • constructPrunedPattern
    See #getPrunedPattern.
  • constructExposedToExposers,
  • constructPrunedPattern,
  • done,
  • empty,
  • exposed,
  • getAnyExposurePath,
  • getExposedInvokables,
  • getExposedToExposers,
  • getPrunedPattern

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now