Tabnine Logo
SingletonImmutableBiMap
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.google.common.collect.SingletonImmutableBiMap (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: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * 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.kill-bill.billing/killbill-platform-osgi-bundles-logger

 @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;
  }
 }
}
com.google.common.collectSingletonImmutableBiMap

Javadoc

Implementation of ImmutableMap with exactly one entry.

Most used methods

  • <init>

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • getSystemService (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim plugins
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