Skip to content

Commit

Permalink
nullable non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrinneal committed Sep 6, 2024
1 parent 0c73e05 commit dbc913d
Show file tree
Hide file tree
Showing 9 changed files with 1,274 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,19 @@ public Map<Long, AllNullableTypes> echoNonNullClassMap(
return classList;
}

@Nullable
@Override
public List<AnEnum> echoNullableNonNullEnumList(@Nullable List<AnEnum> enumList) {
return enumList;
}

@Nullable
@Override
public List<AllNullableTypes> echoNullableNonNullClassList(
@Nullable List<AllNullableTypes> classList) {
return classList;
}

@Override
public @Nullable Map<Object, Object> echoNullableMap(@Nullable Map<Object, Object> map) {
return map;
Expand Down Expand Up @@ -332,6 +345,31 @@ public Map<Long, AllNullableTypes> echoNonNullClassMap(
return classMap;
}

@Nullable
@Override
public Map<String, String> echoNullableNonNullStringMap(@Nullable Map<String, String> stringMap) {
return stringMap;
}

@Nullable
@Override
public Map<Long, Long> echoNullableNonNullIntMap(@Nullable Map<Long, Long> intMap) {
return intMap;
}

@Nullable
@Override
public Map<AnEnum, AnEnum> echoNullableNonNullEnumMap(@Nullable Map<AnEnum, AnEnum> enumMap) {
return enumMap;
}

@Nullable
@Override
public Map<Long, AllNullableTypes> echoNullableNonNullClassMap(
@Nullable Map<Long, AllNullableTypes> classMap) {
return classMap;
}

@Override
public @Nullable AnEnum echoNullableEnum(@Nullable AnEnum anEnum) {
return anEnum;
Expand Down Expand Up @@ -839,6 +877,21 @@ public void callFlutterEchoNullableClassList(
flutterApi.echoNullableClassList(classList, result);
}

@Override
public void callFlutterEchoNullableNonNullEnumList(
@Nullable List<AnEnum> enumList, @NonNull NullableResult<List<AnEnum>> result) {
assert flutterApi != null;
flutterApi.echoNullableNonNullEnumList(enumList, result);
}

@Override
public void callFlutterEchoNullableNonNullClassList(
@Nullable List<AllNullableTypes> classList,
@NonNull NullableResult<List<AllNullableTypes>> result) {
assert flutterApi != null;
flutterApi.echoNullableNonNullClassList(classList, result);
}

@Override
public void callFlutterEchoNullableMap(
@Nullable Map<Object, Object> map, @NonNull NullableResult<Map<Object, Object>> result) {
Expand Down Expand Up @@ -876,6 +929,37 @@ public void callFlutterEchoNullableClassMap(
flutterApi.echoNullableClassMap(classMap, result);
}

@Override
public void callFlutterEchoNullableNonNullStringMap(
@Nullable Map<String, String> stringMap,
@NonNull NullableResult<Map<String, String>> result) {

assert flutterApi != null;
flutterApi.echoNullableNonNullStringMap(stringMap, result);
}

@Override
public void callFlutterEchoNullableNonNullIntMap(
@Nullable Map<Long, Long> intMap, @NonNull NullableResult<Map<Long, Long>> result) {
assert flutterApi != null;
flutterApi.echoNullableNonNullIntMap(intMap, result);
}

@Override
public void callFlutterEchoNullableNonNullEnumMap(
@Nullable Map<AnEnum, AnEnum> enumMap, @NonNull NullableResult<Map<AnEnum, AnEnum>> result) {
assert flutterApi != null;
flutterApi.echoNullableNonNullEnumMap(enumMap, result);
}

@Override
public void callFlutterEchoNullableNonNullClassMap(
@Nullable Map<Long, AllNullableTypes> classMap,
@NonNull NullableResult<Map<Long, AllNullableTypes>> result) {
assert flutterApi != null;
flutterApi.echoNullableNonNullClassMap(classMap, result);
}

@Override
public void callFlutterEchoNullableEnum(
@Nullable AnEnum anEnum, @NonNull NullableResult<AnEnum> result) {
Expand Down
Loading

0 comments on commit dbc913d

Please sign in to comment.