标准接口 [英] Standard Interfaces

查看:109
本文介绍了标准接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Java一段时间了,我一直听说过 Cloneable Iterable 等界面X - 能够秒。

I've used Java for some time and I keep hearing about interfaces such as Cloneable, Iterable and other X-ables.

我想知道是否有所有这些的列表,更重要的是 - 你经常使用哪些日常用途?

I was wondering if there is a list somewhere of all of these and more importantly - which ones do you regularly use day-to-day?

例如,我读过 Cloneable 被认为写得不好而且没有被广泛使用。

For example, I've read that Cloneable is considered badly written and isn't widely used.

推荐答案

来自API文档:

AccessibleStreamable
AdapterActivatorOperations
Callable
Cloneable
Closeable
Comparable
Compilable
Destroyable
Externalizable
Flushable
Formattable
Invocable
ItemSelectable
Iterable
JMXAddressable
Joinable
Pageable
Printable
Readable
Referenceable
Refreshable
Runnable
Scrollable
Serializable
StateEditable
Streamable
Transferable
TypeVariable
TypeVariable
VM_TRUNCATABLE

我使用Cloneable,Comparable,Iterable,Runnable,当然还有 Throwable :-)

I use Cloneable, Comparable, Iterable, Runnable and of course Throwable :-)

这篇关于标准接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆