Tabnine Logo
Interners$InternerBuilder.strong
Code IndexAdd Tabnine to your IDE (free)

How to use
strong
method
in
com.google.common.collect.Interners$InternerBuilder

Best Java code snippets using com.google.common.collect.Interners$InternerBuilder.strong (Showing top 7 results out of 315)

origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Returns a new thread-safe interner which retains a strong reference to each instance it has
 * interned, thus preventing these instances from being garbage-collected. If this retention is
 * acceptable, this implementation may perform better than {@link #newWeakInterner}.
 */
public static <E> Interner<E> newStrongInterner() {
 return newBuilder().strong().build();
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a new thread-safe interner which retains a strong reference to each instance it has
 * interned, thus preventing these instances from being garbage-collected. If this retention is
 * acceptable, this implementation may perform better than {@link #newWeakInterner}.
 */
public static <E> Interner<E> newStrongInterner() {
 return newBuilder().strong().build();
}
origin: com.google.guava/guava-tests

public void testStrong_builder() {
 int concurrencyLevel = 42;
 Interner<Object> interner = Interners.newBuilder()
   .strong()
   .concurrencyLevel(concurrencyLevel)
   .build();
 InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
 assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
}
origin: wildfly/wildfly

/**
 * Returns a new thread-safe interner which retains a strong reference to each instance it has
 * interned, thus preventing these instances from being garbage-collected. If this retention is
 * acceptable, this implementation may perform better than {@link #newWeakInterner}.
 */
public static <E> Interner<E> newStrongInterner() {
 return newBuilder().strong().build();
}
origin: google/j2objc

/**
 * Returns a new thread-safe interner which retains a strong reference to each instance it has
 * interned, thus preventing these instances from being garbage-collected. If this retention is
 * acceptable, this implementation may perform better than {@link #newWeakInterner}.
 */
public static <E> Interner<E> newStrongInterner() {
 return newBuilder().strong().build();
}
origin: google/guava

public void testStrong_builder() {
 int concurrencyLevel = 42;
 Interner<Object> interner =
   Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
 InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
 assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
}
origin: google/guava

/**
 * Returns a new thread-safe interner which retains a strong reference to each instance it has
 * interned, thus preventing these instances from being garbage-collected. If this retention is
 * acceptable, this implementation may perform better than {@link #newWeakInterner}.
 */
public static <E> Interner<E> newStrongInterner() {
 return newBuilder().strong().build();
}
com.google.common.collectInterners$InternerBuilderstrong

Javadoc

Instructs the InternerBuilder to build a strong interner.

Popular methods of Interners$InternerBuilder

  • build
  • weak
    Instructs the InternerBuilder to build a weak interner.
  • <init>
  • concurrencyLevel
    Sets the concurrency level that will be used by the to-be-built Interner.

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now