Tabnine Logo
SingletonImmutableBiMap.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.google.common.collect.SingletonImmutableBiMap
constructor

Best Java code snippets using com.google.common.collect.SingletonImmutableBiMap.<init> (Showing top 20 results out of 315)

origin: google/guava

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<>(singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: google/guava

/** Returns an immutable bimap containing a single entry. */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<>(k1, v1);
}
origin: google/j2objc

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<>(singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: wildfly/wildfly

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<>(singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: wildfly/wildfly

/** Returns an immutable bimap containing a single entry. */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<>(k1, v1);
}
origin: google/guava

public static SingletonImmutableBiMap<Object, Object> instantiate(
  SerializationStreamReader reader) throws SerializationException {
 Object key = checkNotNull(reader.readObject());
 Object value = checkNotNull(reader.readObject());
 return new SingletonImmutableBiMap<>(key, value);
}
origin: com.google.guava/guava-jdk5

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<V, K>(
     singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: com.diffplug.guava/guava-collect

  @Override
  public ImmutableBiMap<V, K> inverse() {
    // racy single-check idiom
    ImmutableBiMap<V, K> result = inverse;
    if (result == null) {
      return inverse = new SingletonImmutableBiMap<V, K>(singleValue, singleKey, this);
    } else {
      return result;
    }
  }
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<V, K>(
     singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: Nextdoor/bender

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<V, K>(
     singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: Nextdoor/bender

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: org.jboss.eap/wildfly-client-all

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<>(singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

 @Override
 public ImmutableBiMap<V, K> inverse() {
  // racy single-check idiom
  ImmutableBiMap<V, K> result = inverse;
  if (result == null) {
   return inverse = new SingletonImmutableBiMap<V, K>(
     singleValue, singleKey, this);
  } else {
   return result;
  }
 }
}
origin: com.google.guava/guava-jdk5

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: com.diffplug.guava/guava-collect

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
  return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: org.hudsonci.lib.guava/guava

/**
 * Returns an immutable bimap containing a single entry.
 */
public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {
 checkNotNull(k1, "null key in entry: null=%s", v1);
 checkNotNull(v1, "null value in entry: %s=null", k1);
 return new SingletonImmutableBiMap<K, V>(k1, v1);
}
origin: com.google.guava/guava-gwt

public static SingletonImmutableBiMap<Object, Object> instantiate(
  SerializationStreamReader reader) throws SerializationException {
 Object key = checkNotNull(reader.readObject());
 Object value = checkNotNull(reader.readObject());
 return new SingletonImmutableBiMap<>(key, value);
}
com.google.common.collectSingletonImmutableBiMap<init>

Popular methods of SingletonImmutableBiMap

    Popular in Java

    • Reading from database using SQL prepared statement
    • getSharedPreferences (Context)
    • findViewById (Activity)
    • compareTo (BigDecimal)
    • String (java.lang)
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • ServletException (javax.servlet)
      Defines a general exception a servlet can throw when it encounters difficulty.
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • CodeWhisperer alternatives
    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