Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java では、実際の型を気にせずにジェネリックを使用できる場合があります。Swiftでそれを行うことができますか?
たとえば、JavaMyClass<AnyObject>のようには機能しません。MyClass<?>私はそれが同じように機能することを期待しています。
MyClass<AnyObject>
MyClass<?>
他に方法はありますか?