Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

examples.adapter: Javadoc index of package examples.adapter.


Package Samples:

examples.adapter

Classes:

AdapterClass: The metaclass AdapterClass supports classes implementing an adapter role of the Adapter pattern. The target's methods with same signatures as the adaptee's are automatically implemented into the adapter class. For example, the class VectorStack : public class VectorStack instantiates AdapterClass adapts Vector in v to Stack { Vector v; public VectorStack( Vector v ) { this.v = v; } public void push( Object o ) { v.addElement( o ); } public Object pop() { return v.removeElementAt( v.size() - 1 ); } } would be automatically implemented with the forwarding methods size(), isEmpty(), hashCode(), etc, ...
Stack
VectorStack

Home | Contact Us | Privacy Policy | Terms of Service