Code example for ImmutableBiMap.Builder

0
   * @return the ErraiEntityType associated with the named class. 
   * @throws IllegalArgumentException 
   *           if the given class name is not an known entity type. 
   */ 
  public <X> ErraiEntityType<X> entity(String className) {
    return entity(className, true);
  } 
 
  @Override 
  public <X> ErraiEntityType<X> entity(Class<X> cls) {
    return entity(cls.getName());
  } 
 
  @Override 
  @SuppressWarnings("unchecked") 
  public <X> ManagedType<X> managedType(Class<X> cls) {
    return (ManagedType<X>) managedTypes.get(cls);
  } 
 
  @Override