Code example for ImmutableBiMap.Builder

Methods: put

0
  <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.build(); 
    entityTypeBuilder = null; 
 
    managedTypes = managedTypeBuilder.build();
    managedTypeBuilder = null;
Contextual code suggestions in your IDE  Get Codota for Java