|
Authored by: Anonymous on Saturday, April 21 2012 @ 08:32 AM EDT |
You are not wrong, however that is not what I said.
Java, Interfaces are *ONLY* a list of names.
There is no way to separate the expression from their idea.
Sure you can come up with a different idea of what an interface would/could/
should be, but then it would not be the same interface,it would be a different
interface.
This refers to the OPs mention of aspects of the API which have yet to be
discussed, including Interfaces.
I think (I haven't actually looked), all of the things you are mentioned are
actually concrete Classes and not Interfaces.
The methods you mention do not return new Interfaces, they return Objects of
the Class ListIterator
Chances are that the List Class implements the Iterator Interface,
This is another area where Oracle can mix and misuse terms to construe
something that is false on the face of it . Likewise a Java Interface is
classified
as an Abstract Type, no doubt this is a different meaning of Abstract to the
legal one. And indeed while a Method may return an Object of a Class type
which may Implement an Interface, such as (e.g.) a ListIterator, it could also
be said that the ListIterator is an interface to the associated List.
Check Wikipedia on Java Interfaces, for more info, it's not complete garbage.
a Java Class may Extend only one Class and may Implement one or more
Interfaces
An Interface does not have any Methods, it only has Method Declarations
(names).
When a Class Implements an interface, it *MUST* Implement *ALL* of the
Methods Declared, which indicates that it is not just the names
individually(Selection) that make the interface, but the whole set
(Organisation) of names that define the Interface.
This is why I assert (IANAL), that copyright for Java Interfaces (specifically
the Java Interface Abstract Type) is barred by the doctrine of merger, you
cannot separate the idea of the Interface from it's expression.
If you use a different expression it is, ipso facto, a different interface.
I hope this clears away some of the smoke.
[ Reply to This | Parent | # ]
|
|
|
|
|