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

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

Best Java code snippets using org.apache.beam.sdk.util.ApiSurface.classesInPackage (Showing top 2 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-extensions-google-cloud-platform-core

 @Test
 public void testGcpCoreApiSurface() throws Exception {
  final Package thisPackage = getClass().getPackage();
  final ClassLoader thisClassLoader = getClass().getClassLoader();
  final ApiSurface apiSurface =
    ApiSurface.ofPackage(thisPackage, thisClassLoader)
      .pruningPattern("org[.]apache[.]beam[.].*Test.*")
      .pruningPattern("org[.]apache[.]beam[.].*IT")
      .pruningPattern("java[.]lang.*")
      .pruningPattern("java[.]util.*");

  @SuppressWarnings("unchecked")
  final Set<Matcher<Class<?>>> allowedClasses =
    ImmutableSet.of(
      classesInPackage("com.google.api.client.googleapis"),
      classesInPackage("com.google.api.client.http"),
      classesInPackage("com.google.api.client.json"),
      classesInPackage("com.google.api.client.util"),
      classesInPackage("com.google.api.services.storage"),
      classesInPackage("com.google.auth"),
      classesInPackage("com.fasterxml.jackson.annotation"),
      classesInPackage("java"),
      classesInPackage("javax"),
      classesInPackage("org.apache.beam.sdk"),
      classesInPackage("org.joda.time"));

  assertThat(apiSurface, containsOnlyClassesMatching(allowedClasses));
 }
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

final Set<Matcher<Class<?>>> allowedClasses =
  ImmutableSet.of(
    classesInPackage("com.google.api.core"),
    classesInPackage("com.google.api.client.googleapis"),
    classesInPackage("com.google.api.client.http"),
    classesInPackage("com.google.api.client.json"),
    classesInPackage("com.google.api.client.util"),
    classesInPackage("com.google.api.services.bigquery.model"),
    classesInPackage("com.google.auth"),
    classesInPackage("com.google.bigtable.v2"),
    classesInPackage("com.google.cloud.bigtable.config"),
    classesInPackage("com.google.spanner.v1"),
    Matchers.equalTo(com.google.api.gax.rpc.ApiException.class),
    Matchers.<Class<?>>equalTo(com.google.api.gax.paging.Page.class),
    Matchers.<Class<?>>equalTo(com.google.cloud.Date.class),
    Matchers.<Class<?>>equalTo(com.google.cloud.Timestamp.class),
    classesInPackage("com.google.cloud.spanner"),
    classesInPackage("com.google.spanner.admin.database.v1"),
    classesInPackage("com.google.datastore.v1"),
    classesInPackage("com.google.protobuf"),
    classesInPackage("com.google.type"),
    classesInPackage("com.fasterxml.jackson.annotation"),
    classesInPackage("com.fasterxml.jackson.core"),
    classesInPackage("com.fasterxml.jackson.databind"),
    classesInPackage("io.grpc"),
    classesInPackage("java"),
    classesInPackage("javax"),
    classesInPackage("org.apache.avro"),
org.apache.beam.sdk.utilApiSurfaceclassesInPackage

Javadoc

A factory method to create a Class matcher for classes residing in a given package.

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).
  • containsOnlyPackages
    See ApiSurface#containsOnlyPackages(Set).
  • 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

  • Finding current android device location
  • findViewById (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
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