use of suite.adt.pair.Fixie_.FixieFun6 in project suite by stupidsing.
the class MapObject_ method list.
public static <T extends MapObject<T>> List<?> list(Object object) {
Class<?> clazz = object.getClass();
Method m = //
Read.from(//
clazz.getMethods()).filter(//
method -> String_.equals(method.getName(), "apply")).uniqueResult();
Class<?> type = m.getParameters()[0].getType();
Object p;
if (type == FixieFun0.class)
p = (FixieFun0<?>) List::of;
else if (type == FixieFun1.class)
p = (FixieFun1<?, ?>) List::of;
else if (type == FixieFun2.class)
p = (FixieFun2<?, ?, ?>) List::of;
else if (type == FixieFun3.class)
p = (FixieFun3<?, ?, ?, ?>) List::of;
else if (type == FixieFun4.class)
p = (FixieFun4<?, ?, ?, ?, ?>) List::of;
else if (type == FixieFun5.class)
p = (FixieFun5<?, ?, ?, ?, ?, ?>) List::of;
else if (type == FixieFun6.class)
p = (FixieFun6<?, ?, ?, ?, ?, ?, ?>) List::of;
else if (type == FixieFun7.class)
p = (FixieFun7<?, ?, ?, ?, ?, ?, ?, ?>) List::of;
else if (type == FixieFun8.class)
p = (FixieFun8<?, ?, ?, ?, ?, ?, ?, ?, ?>) List::of;
else if (type == FixieFun9.class)
p = (FixieFun9<?, ?, ?, ?, ?, ?, ?, ?, ?, ?>) List::of;
else if (type == FixieFunA.class)
p = (FixieFunA<?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?>) List::of;
else
p = Fail.t();
return (List<?>) Rethrow.ex(() -> m.invoke(object, p));
}
Aggregations