It doesn't need an analogy, but it does need some
understanding of object
oriented programming concepts.
The SSO of the Java SE platform libraries
is
Organisation:
the package hierachy (java.lang vs
java.nio.channels)
the unordered list of classes in each
package
Structure:
the class inheritance hierarchy
(eg.
java.lang.Integer
<
java.lang.Number < java.lang.Object)
the
(unordered) list of methods (functions) in each
class
the signature of
those methods - return type, method
name, ordered list of parameters by name and
type, eg for
java.lang.Math.max public static long max(long a, long
b)
Alternatively take a directory of java source code. In each
file of every subdirectory remove
any comments (lines beginning with //, or
between /* */)
and any implementation code (everything between curly
braces).
What is left is the SSO that describes the API of
that
library.
[ Reply to This | Parent | # ]
|