Guava ImmutableBiMap.Builder - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava ImmutableBiMap.Builder class.

This code example shows how to use the following methods:put
  <X> void addManagedType(ManagedType<X> e) {
    managedTypeBuilder.put(e.getJavaType(), e);
  <X> void addEmbeddableType(EmbeddableType<X> e) {
    embeddableTypeBuilder.put(e.getJavaType(), e);
    managedTypeBuilder.put(e.getJavaType(), e);
   * Freezes the definition of this metamodel. Once frozen, no more entity 
   * metadata can be added, and the collections returned by 
   * {@link #getEntities()} and friends are immutable. 
  void freeze() { 
    entityTypes =; 
    entityTypeBuilder = null; 
    managedTypes =;
    managedTypeBuilder = null;
See Code Examples for Guava ImmutableBiMap.Builder Methods: