Standard Interfaces

前端 未结 8 835
眼角桃花
眼角桃花 2021-02-06 03:09

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

I was wondering

相关标签:
8条回答
  • 2021-02-06 03:36

    From the API docs:

    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
    

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

    0 讨论(0)
  • 2021-02-06 03:36

    Comparable is one I use all the time. There is a list: http://java.sun.com/j2se/1.5.0/docs/api/ but it is HUGE. (You have to scroll about 2/3 of the way down the page to get to the interface tree.

    0 讨论(0)
提交回复
热议问题