java - Inner class as "sensible" default for an interface? -
I am increasing part of an existing internal structure Some part of the structure uses the interface definition, which has an internal square . The interface is used as a parameter value for an annotation and the internal class is provided as the default value. The interface looks like this:
Public Interface Adapter & lt; X, Y & gt; {Fixed final range identifier and object, object & gt; {@ Override Public Object Transform (object x) {Return X; } @OverWide Public Object Inverse (Object Y) {Return Y; }} Public Wi conversion (xx); Public X Inversion (YY); } and its use is:
public @interface Adapt {class Although its use seems clearly, this build starts against the 'contract' concept of Java Enterprise and may be contractual for the next god, which has to deal with the code.
What will be the best practice in this case?
This is the best systems There are instances where there is some steady ways in a stable final internal class that are known as F.E. Find a specific example.
Edit: Keep in mind that the interface and internal squares are completely different types, the latter contains a normal prefix with the former.
Comments
Post a Comment