Code example for ImmutableBiMap.Builder

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;
Contextual code suggestions in your IDE  Get Codota for Java