@Test public void testEntityTypeImpl() { EntityTypeImpl.Builder builder = new EntityTypeImpl.Builder(); builder.setHasStream(true); builder.setIsReadOnly(false); PropertyRefImpl propertyRef = new PropertyRefImpl("path", "alias"); ImmutableList<PropertyRef> propertyRefs = new ImmutableList.Builder<PropertyRef>().add(propertyRef).build(); builder.setKey(new KeyImpl(propertyRefs)); EntityTypeImpl entityTypeImpl = builder.build(); assertThat(entityTypeImpl.getKey(), is(notNullValue())); assertThat(entityTypeImpl.hasStream(), is(true)); assertThat(entityTypeImpl.isReadOnly(), is(false)); assertThat(entityTypeImpl.getMetaType(), is(MetaType.ENTITY)); }
private EntityTypeImpl(Builder builder) { super(builder); this.key = builder.key; this.isReadOnly = builder.isReadOnly; this.hasStream = builder.hasStream; }
EntityTypeImpl extends StructuredTypeImpl implements EntityType { private EntityTypeImpl(Builder builder) { super(builder); this.key = builder.key; this.isReadOnly = builder.isReadOnly; this.hasStream = builder.hasStream; } }
EntityTypeImpl extends StructuredTypeImpl implements EntityType { private EntityTypeImpl(Builder builder) { super(builder); this.key = builder.key; this.isReadOnly = builder.isReadOnly; this.hasStream = builder.hasStream; } private  EntityTypeImpl(Builder builder); }
EntityTypeImpl extends StructuredTypeImpl implements EntityType { private EntityTypeImpl(Builder builder) { super(builder); this.key = builder.key; this.isReadOnly = builder.isReadOnly; this.hasStream = builder.hasStream; } private  EntityTypeImpl(Builder builder); @Override MetaType getMetaType(); @Override Key getKey(); @Override boolean isReadOnly(); @Override boolean hasStream(); }
EntityTypeImpl extends StructuredTypeImpl implements EntityType { private EntityTypeImpl(Builder builder) { super(builder); this.key = builder.key; this.isReadOnly = builder.isReadOnly; this.hasStream = builder.hasStream; } private  EntityTypeImpl(Builder builder); @Override MetaType getMetaType(); @Override Key getKey(); @Override boolean isReadOnly(); @Override boolean hasStream();  }