@Test @DisplayName("create instance with FieldMask") void createWithFieldMask() { FieldMask fieldMask = FieldMask.newBuilder() .addPaths("foo.bar") .build(); StorageConverter<OrganizationId, TestEntity, Organization> withMasks = converter.withFieldMask(fieldMask); assertEquals(fieldMask, withMasks.fieldMask()); }
@Override public StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask) { TypeUrl stateType = entityStateType(); EntityFactory<E> factory = entityFactory(); return new DefaultConverter<>(stateType, factory, fieldMask); }
DefaultConverter extends StorageConverter<I, E, S> { @Override public StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask) { TypeUrl stateType = entityStateType(); EntityFactory<E> factory = entityFactory(); return new DefaultConverter<>(stateType, factory, fieldMask); } }
DefaultConverter extends StorageConverter<I, E, S> { @Override public StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask) { TypeUrl stateType = entityStateType(); EntityFactory<E> factory = entityFactory(); return new DefaultConverter<>(stateType, factory, fieldMask); } private  DefaultConverter(TypeUrl stateType, EntityFactory<E> factory, FieldMask fieldMask); }
DefaultConverter extends StorageConverter<I, E, S> { @Override public StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask) { TypeUrl stateType = entityStateType(); EntityFactory<E> factory = entityFactory(); return new DefaultConverter<>(stateType, factory, fieldMask); } private  DefaultConverter(TypeUrl stateType, EntityFactory<E> factory, FieldMask fieldMask); @Override StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask); }
DefaultConverter extends StorageConverter<I, E, S> { @Override public StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask) { TypeUrl stateType = entityStateType(); EntityFactory<E> factory = entityFactory(); return new DefaultConverter<>(stateType, factory, fieldMask); } private  DefaultConverter(TypeUrl stateType, EntityFactory<E> factory, FieldMask fieldMask); @Override StorageConverter<I, E, S> withFieldMask(FieldMask fieldMask);  }