You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the rowDataSnapshot.data(column, mapFunction) usage doesn't lend itself to used in lazy declarations, we can reconsider the interface and support classes again.
The proposal is to have String as return type and use Single and Optional adapters:
interfaceRowDataSnapshot<Contract> extendsIterable<String>
{
Optional<String> stringData(Stringcolumn);
Optional<byte[]> byteData(Stringcolumn);
}
Single<Color> color = newColumnData<>(rowDataSnapshot, Tasks.COLOR, colorMapFunction);
Optional<Color> color = newOptionalColumnData<>(rowDataSnapshot, Tasks.COLOR, colorMapFunction);
For the common types we can create specific classes or use the general ones:
Since the
rowDataSnapshot.data(column, mapFunction)
usage doesn't lend itself to used in lazy declarations, we can reconsider the interface and support classes again.The proposal is to have
String
as return type and useSingle
andOptional
adapters:For the common types we can create specific classes or use the general ones:
The text was updated successfully, but these errors were encountered: